Question

Locked

GPO - Restart Computers

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

regards

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| 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..

http://www.sharewareconnection.com/titles/computer-shutdown2.htm

Please post back if you have more problems or questions.

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.

Back to Desktop Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums