Run a Scheduled Task as a service?
Posted on 2004-10-05
Ok, it's a long story so I won't go into the details of why, but it must be done this way.
I need to force 60 W2K domain workstations (2K AD) to reboot at 19:00 every day. I need this to happen whether the machines are logged in or not, and their time is out of synch with the DC's by about 1 year all day (user accessing some training database from Oct 03) so I can't instigate this from a server, the command has to come from the local machine.
I can create a scheduled task to run reboot.bat as below:
shutdown.exe /C /L /R
That runs fine as a scheduled task when the machine is logged in but not when the machine has been logged off and is sitting at the Ctrl, Alt & Del screen.
My question is how can I get reboot.bat to run at 19:00 every day from the local workstation to force a reboot regardless of it's log in state?