troubleshooting Question

GPO deployed but startup script from GPO not running? Need to debug.

Avatar of hypercube
hypercubeFlag for United States of America asked on
Active Directory* task scheduler* gpos
5 Comments1 Solution118 ViewsLast Modified:
I started this here:
I have a GPO that uses a Startup script.
The Startup script runs a .bat file.
The .bat file creates a folder in C:\Users\Public\ called Scripts if it doesn't exist.
The .bat file writes a .bat file into Scripts: "reset.bat" which is simply:
shutdown -r
The .bat file runs schtask:
schtasks /create /TN "reset" /RU "NT AUTHORITY\SYSTEM" /IT /RL HIGHEST /SC DAILY /st 16:00 /TR C:\Users\Public\Scripts\reset.bat

On the initial tests that I ran, it appeared that this was working fine - both on a small group and then on  couple of larger groups of computers.
However, in fully deploying the GPO, I now see that a fair number of the added computers have the GPO applied but the .bat file and the scheduled task don't exist.

I'm trying to figure out how to best debug this situation.  Adding some kind of logging to the startup script running seems likely.  But how?  I've not found it.
Hello ThereSystem Administrator
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros