shut down in time cmd code example
Example 1: cmd shutdown
# Schedule an automatic shutdown (7200 = seconds)
shutdown /s /t 7200
# Cancel Auto Shutdown Schedule
shutdown -a
Example 2: cmd timed shutdown
shutdown /s /t 3600 #(3600s --> 1h)
# Schedule an automatic shutdown (7200 = seconds)
shutdown /s /t 7200
# Cancel Auto Shutdown Schedule
shutdown -a
shutdown /s /t 3600 #(3600s --> 1h)