Batch File configure on Server startup without Login

Answered Batch File configure on Server startup without Login

  • Thursday, May 24, 2012 4:47 PM
     
     

    I've a requirement for run a batch file in Server Startup with login to any user account. I'm using Windows 2008 R2 Ent.

    I tried with configure on Local GP , startup in Computer settings  , scheduled as a Task & adding to Startup in Windows. But any mentioned solution wasn't work.

    Please advise me on this.


    Regards, COMDINI

All Replies

  • Friday, May 25, 2012 1:51 AM
     
     Proposed

    What are you trying to accomplish?  What is in this batch file?

    Are you familiar with StartUp and Shutdown script?  Have you tried this?

    http://technet.microsoft.com/en-us/library/cc775970(v=ws.10).aspx


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.

  • Friday, May 25, 2012 3:00 AM
    Moderator
     
     Answered

    Hi COMDINI,

    Thanks for posting in Microsoft TechNet forums.

    Since the system is Windows Server 2008 R2, please check whether the article below can be helpful:

    Assign Computer Startup Scripts

    http://technet.microsoft.com/en-us/library/cc770556.aspx

    Please feel free to ask if anything is unclear.

    Regards

    Kevin

     


    TechNet Community Support

  • Friday, May 25, 2012 3:40 AM
     
     

    Just to be sure, because with your question Iam not sure if it need to be run in the user or computer context.

    If the script need to be run in the user context just make a local GPO in the user context -> logon script.

    Keep in mind as a computer script will be run with nt autorithy\system account


    MCP | MCTS 70-236: Exchange Server 2007, Configuring

  • Friday, May 25, 2012 4:14 AM
     
     

    Hello Comdini,

    Apart from Group Policy computer configuration settings, we can run batch files by defining schedule tasks.

    Create a schedule task and define a time when it suppose to run.

    I suggest you go through below article and define your own task and schedule it.

    http://technet.microsoft.com/en-us/library/cc725745.aspx

     

    Regards, Ravikumar P

  • Saturday, May 26, 2012 6:44 AM
     
     

    Hi Santhosh  ,  K_evin  & Yag_moth,

    thanks for your post. i tried it . but it wasn't success.  actually with that batch file it is starting a apache tomcat service.

    when i start it manually  , it is working. I want to do it on Computer Startup without login to user account.

    Hi EXRAPUL .

    I followed your link. but can't find after 2nd step.

    "

    1. In the console tree under Computer Configuration or User Configuration, expand the Preferences folder, and then expand the Control Panel Settings folder.

    2. Right-click the Scheduled Tasks node, point to New, and select Scheduled Task "

    Guys , please advise me on this.


    Regards, COMDINI

  • Monday, May 28, 2012 2:55 AM
    Moderator
     
     Answered

    Hi COMDINI,

    You mentioned "when I start it manually, it is working". Do you mean that the apache tomcat service can be started manually or this service can be started while manually running the batch file?

    Please kindly clarify the issue for us.

    In the meantime, please check whether the information in the thread below can be helpful:

    Startup scripts are not working

    http://social.technet.microsoft.com/Forums/en-SG/winserverGP/thread/392dd878-63e3-4a42-a9fb-e55a9f9e5340

    Regards

    Kevin


    TechNet Community Support

  • Tuesday, May 29, 2012 2:51 PM
     
     

    Which article are you following?

    http://technet.microsoft.com/en-us/library/cc779329(v=ws.10).aspx


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.

  • Saturday, June 02, 2012 8:57 AM
     
     

    Hi Kevin ,

    yes. it is running when I do manually. I tried it to moved to STARTUP in Program files. it also working. but only matter is , User have to Login to his Desktop.

    Further I followed which you provided methods. but it also not worked.


    Regards, COMDINI

  • Saturday, June 02, 2012 8:26 PM
     
     Answered

    Did you try startup script? Not the startup in program files.

    http://technet.microsoft.com/en-us/library/cc779329(v=ws.10).aspx


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.

  • Monday, June 04, 2012 3:43 AM
    Moderator
     
     Answered

    Hi COMDINI,

    I agree with Santhosh.

    Please check and make sure that it is Computer Startup Script but not User Logon Script.

    Computer Startup Script should run on system start-up and before user logging on.

    Regards

    Kevin


    TechNet Community Support