GPO - Restart Computers

By hachemh ·
i need a gpo that restart the computers on my network at specfied time.


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Not sure

by jimmy-jam In reply to GPO - Restart Computers

if there is a GPO that will do that but you could try a scheduled job using the shutdown command.

shutdown -r

there are other switches you can use to customize the reboot as well.

Collapse -

This might help you..

Collapse -

Instead of a GPO

by Dumphrey In reply to GPO - Restart Computers

a batch file from a server will do the trick.

Create 2 files, reboot.bat and hosts.txt

Reboot.bat should contain the following

for /F %%a in (hosts.txt) do shutdown -r -f -m \\%%a

then, in hosts.txt, make a list of machines to reboot (can pull from AD with dsquery), one machine per line. just the machine name, no domaine names needed.

The script can then be scheduled to run from the scheduled tasks on the server. You will have to make changes to the hosts file, or write a more complex batch file that populates that file on its own with queries.

Related Discussions

Related Forums