how to restart a computer using cmd on windows 10 code example Example: restart windows from cmd shutdown /r