Running a batch file as a startup script

By mitsueclipseownr@yahoo. ·
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.


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by bens In reply to Running a batch file as a ...

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.

Collapse -


by mitsueclipseownr@yahoo. In reply to GpResult

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.

Related Discussions

Related Forums