windows shutdown code example
Example 1: windows 10 shut down after 1 hour
Open CMD :
Shutdown after 1 hour:
shutdown -s -t 3600
Shutdown after 2 hours:
shutdown -s -t 7200
Shutdown after XXXX seconds:
shutdown -s -t XXXX
Example 2: how to power down pc using cmd
shutdown /s