Having trouble getting startup scripts to work in Server 2003

scriptingstartupwindows-server-2003

Thanks for taking the time to read this.

I am having trouble getting my startup scripts to run correctly on the domain I am administering. Before anyone gets upset and says "go read xxx article from microsoft",… I have. I am simply missing something or not understanding it properly. I understand how to assign the script, what I am curious about is where exactly it should be placed in the Windows folder structure. I have been able to get them to work by creating a share folder called "scripts" and pointing to that exact unc pathname IE \servername\scripts\xxx.bat. However, I would like to do it properly, would someone please tell me where they should be placed in Win2003 server, and what the path name should be when assigning a group policy to do something that applies to computer specific properties? Your assistance is very much appreciated by a junior admin trying to learn some new tricks!

Best Answer

The script gets placed in "domain\sysvol\domain\policies\policy guid\machine\scripts\startup" folder. The easiest and recommended way to add a script is to edit the GPO that applies to the computer(s) in question using GPMC, expand Computer Configuration, Expand Windows Settings, select the Scripts item in the left pane, double-click the Startup item in the right pane, click the Show Files button, and paste your script into the windows explorer window that opens, close the explorer window, click the Add button, type the name of the script in the "Script Name" field, click OK, click OK again, and close the GPMC.