You can modify the command to fit different needs by adding or changing flags:
@echo off echo Shutting down in 1 hour. Type 'shutdown /a' to cancel. shutdown /s /t 3600 /c "Scheduled maintenance shutdown in 60 minutes." pause shutdown s t 3600
: The timeout period measured in seconds . Since there are 60 seconds in a minute and 60 minutes in an hour, 3,600 seconds equals exactly one hour. How to Use the Shutdown Command You can modify the command to fit different
: Open the Start menu, type cmd , and press Enter. Type the command and hit Enter to set the timer. Since there are 60 seconds in a minute
/f forces running apps to close without user confirmation — use carefully.
shutdown /s /t 3600 /c "Save your work. System will power off in 1 hour."