Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best and safest way to auto shutdown at time xx:xx

Status
Not open for further replies.

jackhammerbob

Technical User
Jul 27, 2003
20
US
What is the best way to automate a computer shutdown at let's say 5AM in the morning. A way in which it ensures the computer shuts down and is not stopped by a "You didn't save, are you sure you want to exit" message box?
 
We use a scheduled task to shutdown PCs left on overnight.

Create a script called c:\shutdown.bat containing the command c:\windows\system32\shutdown.exe /s /f

Schedule the task to run at 5.00am every day. Run the task as administrator. Only start the task if the computer has been idle for 60 minutes.

I haven't tried PSShutdown but it sounds as though it does a similar thing.
 
PSShutdown is very similar to shutdown.exe it's just a bit more flexible with more switches. Also it doesn't need to be on the station so you can execute a .bat file on a server that will shutdown multiple PC's at the same time.

"Sometimes, a cigar is just a cigar." - Sigmund Freud
 
PsShutdown does appear to be more simple to administer.

Does PsShutdown turn off machines that are still being used? For example if I scheduled a batch file to run on the server every evening at 8.00pm to shutdown multiple computers would it still shutdown machines being used by people working late? They might not notice any warning of an imminent shutdown.
 
You can set it to show a popup message telling the user of the impending shutdown, they can then abort the shutdown. I don't tend to use it on office PC's but it comes in handy for shutting down classroom PC's. I think you can set it so it won't shutdown if someone is logged on.

"Sometimes, a cigar is just a cigar." - Sigmund Freud
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top