Windows XP Auto Shutdown

  • Thread starter Thread starter Alan Bastanpour
  • Start date Start date
A

Alan Bastanpour

Is there any way through group policies to force machines shutdown everyday
at a certain time?

I have experimented with using the following command line:
at 18:00 /every:ME,T,W,Th,F shutdown /l /y /c

However, the scheduled task above did not work, because of the system
account.

I would like to implement auto shutdown via GPOs or scripts.

Any ideas?

Thanks
 
GPO's only allow for logon or logoff scripts in the user context. A
Scheduled Task, with the appropriate user credentials will work.

Open a Command Prompt window and enter SHUTDOWN /? for the correct
command line options for the SHUTDOWN Command.
 
Alan said:
Is there any way through group policies to force machines shutdown
everyday at a certain time?

I have experimented with using the following command line:
at 18:00 /every:ME,T,W,Th,F shutdown /l /y /c

However, the scheduled task above did not work, because of the system
account.

No, the system account can shut down the computer. The task isn't working
because you have the command line arguments incorrect; try

shutdown -L -f

or use shutdown /? to see the correct arguments.

Also ME isn't the code for Monday. Try just M.

You could put the AT command in a startup script, but you'd wind up with
multiple copies of the schedule. You could say:

at 18:00 shutdown -L -f

and that should work.

Harry.
 
Back
Top