how to restart from command prompt windows 10 code example Example: restart windows from cmd shutdown /r