Re: grrr... how do i get 150+ systems to reboot at 3AM every night through a GPO?



Or you could use schtasks to create the task. I think this is the modern version of AT

schtasks /create /tn "reboot" /tr "shutdown.exe -r -f -t 60" /sc DAILY /st 03:00 /ru SYSTEM

This way it will just error out the second time around.


"Darren Mar-Elia" <dmanonymous@xxxxxxxxxxxxx> wrote in message news:2ABBAC64-7671-478C-8307-F46759D9C178@xxxxxxxxxxxxxxxx
Right, and if you wanted to do this through GP, you could create a startup script batch file that calls shutdown.exe from an AT command line:

at 20:00 /every:M,T,W,Th,F,S,Su "shutdown /r /f"

Note that this will create a new scheduler job every time it runs, so you probably only want it in your startup script for a day or two. Otherwise you could preface it with the following command:

at 1 /d
at 20:00 /every:M,T,W,Th,F,S,Su "shutdown /r /f"

Note that this assumes that the current job id is always 1, which may not be the case.


--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy

Simplify Group Policy Troubleshooting with the NEW GPExpert Troubleshooting Pak 1.0 at http://www.sdmsoftware.com/products.php

Visit the GPOGUY: http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related

"Myweb" <meiweb@xxxxxx> wrote in message news:ff16fb66363948c97c13f8a3ca86@xxxxxxxxxxxxxxxxxxxxxxx
Hello Noob,

Use the shutdown.exe from MS and configure a scheduled task on your machine. Shutdown.exe is running complete from the command line.

Best regards

Myweb
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.

I have the users systems set so they are not able to shutdown (only
have logoff button with GPO change) but I would like to have the
systems reboot every night.

I do not want to have to go each system and setup a scheduled task.

Any ideas?





.