Shutdown desktop at a set time via Group Policy

I am trying to get a policy to shutdown all desktops at a specific time.

Here is what I have done.

1) Created a simple script to shutdown a desktop (shutdown -s) & saved it as a batch file under "C:\Windows\SYSVOL\sysvol\"
Script has been tested on local machine & works perfectly

2) Created a GPO for domains desktops, under computer configuration -> preferences -> scheduled task
Set the schedule task to run at a specific time & point to my batch file in "C:\Windows\SYSVOL\sysvol\"

3) On desktop, I can see that the policy is applied as the task is set under the scheduler


Issue is that the desktop does not shutdown....

Any ideas?

Cheers
LVL 1
defreyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yo_beeDirector of Information TechnologyCommented:
Can you post your script and your task setting?
That may expose something.

Are you running the script with an admin account or as the user?
Does the script execute at all and if so does it show 0x0 value on Last Run Result?
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
You should be pointing to the batch file in UNC format (i.e. \\dcservername\sysvol\xyz.cmd)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yo_beeDirector of Information TechnologyCommented:
Are you doing anything other then shutdown/reboot?

You can use the built in shutdown.exe /s /t 00 /d p:2:18
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.