Windows XP Auto Shutdown

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
 
D

Doug Knox - [MS-MVP]

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.
 
H

Harry Johnston

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top