windows 10 shell restart code example Example 1: restart windows from cmd shutdown /r Example 2: restart command windows server 2008 shutdown –r