Discussion Locked

Use a batch file to shut down a system

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Regarding Tech Tips Newsletter's above-mentioned article, how would you revise this batch file to shut down a computer at a specified time?

"If you write batch files for maintaining your systems and need to shut down a computer at the end of the procedure, add this command to the end of the file:

Rundll.exe user.exe,exitwindows"

3 replies

by able-admin

I simply use the command "shutdown"

ie.

at 6:00 /every:m,t,w,th,f,s,su "shutdown /l /r /y /c"
Where /l tells it to shutdown the local machine, /r to reboot, /c to close all programs and /y to avoid having to say yes to questions.

This discussion is closed to new replies.