Question Locked

Running a batch file as a startup script

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi
I created a batch file(tested and it works) I am trying to get it to run using group policy. I got as far as Computer Configuration>Windows Settings>Scripts>Startup added the script. It is located in Domain Name\SysVol\Domain name\Policies\{0F30435D-5C0D-4425-A0CF-1C1112BEE0F4}\Machine\Scripts\Startup
However, the script does not run. Any ideas.

thanks,
DJ

3 replies

by bens

Try running gpresult from the command line on the client machine. At least then you'll know if the GP is actually applying, first and foremost.

As a test, have you tried sticking the batch in the StartUp directory on a test PC? At least that will tell you if the problem lies within the script @ startup (if it is getting prompted for input, etc).

What, if you dont mind me asking, is the batch file accomplishing? Mapping drives? This might make a difference if you are applying in Computer Config as opposed to User Config in GPO, or if you are better suited placing the batch in the NETLOGON share. Just some ideas.

by mitsueclipseownr

Ben,
Gpresult shows the policy being applied--I even did a refresh. As a test I placed the batch file on a local machine startup folder and it ran just fine. The batch file is configured to create static dns enteries.

This discussion is closed to new replies.