Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Batch - Auto Restart/Shutdown ====== **General Information** 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__ <code winbatch> shutdown -r -t 3600 -c "Performing System Maintenance. Computer will automatically restart after the countdown. | IT Department |" </code> __Auto Shutdown After 30 Seconds__ <code winbatch> shutdown /s /t 30 /d p:0:0 /c "Nightly auto shutdown in 30 seconds. (cmd prompt, 'shutdown /a to abort')" </code> __Abort shutdowns or restarts__ <code winbatch> shutdown -a </code> windows_wiki/batch_-_auto_restart_shutdown.txt Last modified: 2019/05/25 23:50(external edit)