windows_wiki:batch_-_auto_restart_shutdown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows_wiki:batch_-_auto_restart_shutdown [2014/11/20 19:32]
127.0.0.1 external edit
windows_wiki:batch_-_auto_restart_shutdown [2019/05/25 23:50] (current)
Line 1: Line 1:
 ====== Batch - Auto Restart/Shutdown ====== ====== Batch - Auto Restart/Shutdown ======
 +
 +**General Information**
  
 Different ways to restart or shutdown from the cmd prompt. (could also put into a batch script) Different ways to restart or shutdown from the cmd prompt. (could also put into a batch script)
 +
 +**Checklist**
 +  * OS: Windows XP/7
 +
 +----
 +
 +===== The Code =====
  
 __Auto Restart After 60 Minutes__ __Auto Restart After 60 Minutes__
-<code>+<code winbatch>
 shutdown -r -t 3600 -c "Performing System Maintenance. Computer will automatically restart after the countdown. | IT Department |" shutdown -r -t 3600 -c "Performing System Maintenance. Computer will automatically restart after the countdown. | IT Department |"
 </code> </code>
  
 __Auto Shutdown After 30 Seconds__ __Auto Shutdown After 30 Seconds__
-<code>+<code winbatch>
 shutdown /s /t 30 /d p:0:0 /c "Nightly auto shutdown in 30 seconds. (cmd prompt, 'shutdown /a to abort')" shutdown /s /t 30 /d p:0:0 /c "Nightly auto shutdown in 30 seconds. (cmd prompt, 'shutdown /a to abort')"
 </code> </code>
  
 __Abort shutdowns or restarts__ __Abort shutdowns or restarts__
-<code>+<code winbatch>
 shutdown -a shutdown -a
 </code> </code>
  • windows_wiki/batch_-_auto_restart_shutdown.1416529943.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)