Discussion Locked

Force a reboot with a Group Policy?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to force nightly reboots on all PC's on our network. Is there a way to do this with GPO's? It seems that doing this with a GPO would be far more inclusive than using task scheduler? If not possible with a GPO, how can I use task scheduler to automate all reboots?

1 reply

by beermonster

Hi
I can't think why anyone would need to reboot all machines nightly, seems to me you'd be better served attacking the reason for the reboot (whatever that is). As far as I know, there's no way of doing this via the GPO, and task scheduler will not give you the central control required for something like this. I recommend a nightly batch file, run on a server, which accepts as input a list of machines that you maintain (either manually or perhaps automatically produced using a vbscript which queries AD for machine accounts) and runs shutdown.exe (reskit) on them. Use the /R switch to force a reboot rather than a shutdown. You could check whether each machine was up during the script, and also (after a time delay) check if they had come back up after the reboot - both of these could be reported in a text file for you to examine the next day. Hope this helps.

This discussion is closed to new replies.