GPO - Restart Computers
hello
i need a gpo that restart the computers on my network at specfied time.
regards
Desktop
hello
i need a gpo that restart the computers on my network at specfied time.
regards
by hachemh Accepted solution
by jiminpa Accepted solution
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.
by Former member Accepted solution
http://www.sharewareconnection.com/titles/computer-shutdown2.htm
Please post back if you have more problems or questions.
by dumphrey Accepted solution
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.
This discussion is closed to new replies.
Sort by Trending