How do I shut down or restart my Windows computer via ..., Microsoft Windows offers several ways to shut down or restart your computer, one of which is via the command prompt. From an open command prompt window, type shutdown, followed by the option you wish to execute. For a complete list of options, type: shut