Shut Down the System
Although shutting down the computer from the Start menu is faster and easier, the shutdown command can also be issued at a command prompt to shut down the computer. The shutdown command also offers parameters to log off a user, restart the computer, and abort a system shutdown. If you ever have to boot to the command-line to troubleshoot a problem, you'll want to know how this command works. To shut down the computer and experiment with other options:
1.
Close all open programs to avoid loss of data.
2.
Open Command Prompt from the shortcut created in the previous section or by clicking Start, pointing to All Programs, pointing to Accessories, and clicking Command Prompt.
3.
At the command prompt, type shutdown -s. Press Enter or Return on the keyboard. A shutdown dialog box opens.
4.
To abort the shutdown in progress, at the command prompt, type shutdown -a.
Other options include -r to restart the system, -m \\computername to shut down a remote computer, and -l to log off of the computer. To see all the options, type shutdown /? at the command prompt.