Shutdown Command
Shutdown Command
Parameter Function
-s Shuts down the computer.
-r Reboots the computer.
-f Force-close all running applications.
-m \\ Specifies a specific computer on the network that you want to shut down or
Computer reboot. Absent this parameter, the command affects only the local PC on which
it is run.
-t xx Sets a delay (xx seconds) before the specified operation commences.
/i Display the graphical user interface (GUI). This must be the first option
/l Log off
/p Turn off the local computer with no time-out or warning
/hybrid Performs a shutdown of the computer and prepare it for fast startup
-c Add your own text inside the quotations to provide remote users with a
"message" message about why and when their PC will shut down or reboot.
/e Document the reason for an unexpected shutdown of a computer.
/a Aborts a shutdown or restart if used during the (-t) delay period.
/h Hibernates the computer.
/o Go to the advanced boot options menu and restart the computer.
Must be used with /r option.
/? Displays the full help document with all commands.
1.
shutdown -r -f -t 0
That command will reboot the computer (-r), force all applications to close so that one doesn’t
get stuck and prevent the reboot from happening (-f), and it will happen immediately with a zero
second delay (-t 0).
2.
This command shuts down the computer (-s), forces running applications to close (-f), designates the
remote PC by name (-m \\UPSTAIRS) because you’re executing the command on your own PC, gives a
time delay of 60 seconds (-t 60), and provides a descriptive message (-c) that will appear on your
spouse’s computer to notify them of the impending shutdown.