windows 10 cmd reboot code example Example 1: restart windows from cmd shutdown /r Example 2: how to power down pc using cmd shutdown /s