reboot windows command line code example Example 1: restart windows from cmd shutdown /r Example 2: reboot windows terminal shutdown -r -t 0