restart computer and reopen all windows command line code example Example: restart windows from cmd shutdown /r