The shutdown command is a command prompt command that turns off, restarts, logs off, or puts your computer to sleep. The same command can be used to remotely shut down or restart a computer that you have access to over a network.
How to Shut Down Your Friend's Computer Using CMD: A Hilarious Prank Tutorial #2
In some ways it is similar to the 'log out' command.
The shutdown command is available through the Command Prompt in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP operating systems.
The command follows the following syntax: