Shutdown (computing)
Remove power from a computer's main components in a controlled way
title: "Shutdown (computing)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["operating-system-technology", "windows-commands", "windows-administration", "macos", "unix-process--and-task-management-related-software"] description: "Remove power from a computer's main components in a controlled way" topic_path: "technology/operating-systems" source: "https://en.wikipedia.org/wiki/Shutdown_(computing)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Remove power from a computer's main components in a controlled way ::
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | shutdown |
| screenshot | Windows 10 shutdown command.png |
| screenshot size | 320px |
| caption | The shutdown command on Windows 10 |
| developer | Microsoft, ReactOS Contributors |
| operating system | Windows, ReactOS |
| genre | Command |
| license | Windows: Proprietary commercial software |
| | website | | ::
::figure[src="https://upload.wikimedia.org/wikipedia/commons/5/5e/Windows_XP_Shutdown.png" caption="[[Windows XP]] shutdown dialog box"] ::
::figure[src="https://upload.wikimedia.org/wikipedia/commons/f/f2/Windows_11_Power_Options.png" caption="[[Windows 11]] power menu, opened from the [[Start menu"] ::
To shut down, shut off or power off a computer is to remove power from a computer's main components in a controlled way. After a computer is shut down, main components such as CPUs, RAM modules and hard disk drives are powered down, although some internal components, such as an internal clock, may retain power.
Implementations
The shutdown feature and command is available in Microsoft Windows, ReactOS, HP MPE/iX, and in a number of Unix and Unix-like operating systems such as Apple macOS.
Microsoft Windows and ReactOS
::figure[src="https://upload.wikimedia.org/wikipedia/commons/9/9b/Shutdown_Options_7.png" caption="Shutdown options have been moved from a separate dialog box to the [[start menu]], in [[Windows Vista]] and later versions of Microsoft Windows. The above is from [[Windows 7]]."] ::
In Microsoft Windows and ReactOS, a PC or server is shut down by selecting the item from the Start menu on the desktop. Options include shutting down the system and powering off, automatically restarting the system after shutting down, or putting the system into stand-by mode.
Just like other operating systems, Windows has the option to prohibit selected users from shutting down a computer. On a home PC, every user may have the shutdown option, but in computers on large networks (such as Active Directory), an administrator can revoke the access rights of selected users to shut down a Windows computer. Nowadays there are many software utilities which can automate the task of shutting down a Windows computer, enabling automatic computer control. The Windows Shutdown website lists various software utilities to automate the task of shutting down.
In Windows, a program can shut down the system by calling the ExitWindowsEx or NtShutdownSystem function.{{cite web
|title = NtShutdownSystem
|url = http://undocumented.ntinternals.net/source/usermode/undocumented%20functions/hardware/ntshutdownsystem.html
|access-date = 11 April 2015
|date = 2001-02-25
|url-status = dead
|archive-url = https://web.archive.org/web/20140902230507/http://undocumented.ntinternals.net/source/usermode/undocumented%20functions/hardware/ntshutdownsystem.html
|archive-date = 2 September 2014
|df = dmy-all
Command-line interface
| name = shutdown
| logo =
| screenshot = Windows 10 shutdown command.png
| screenshot size = 320px
| caption = The shutdown command on Windows 10
| developer = Microsoft, ReactOS Contributors
| released =
| latest release version =
| latest release date =
| operating system = Windows, ReactOS
| genre = Command
| license = Windows: Proprietary commercial software
ReactOS: GNU General Public License
| website =
There is also a shutdown command that can be executed within a command shell window. [shutdown.exe](shutdown-exe) is the command-line shutdown application (located in %windir%\System32\shutdown.exe) that can shut down the user's computer or another computer on the user's network. Different parameters allow different functions. More than one parameter can be used at a time for this command.
::data[format=table]
| Parameter | Function |
|---|---|
| -l | Logs off a user. This is the default even without using any parameters. |
| -a | Stops shutdown.exe. It is used during a time-out period. |
| -f | Kills all running applications. |
| -s | Turns off the computer. |
| -r | Shuts down and reboots a computer. |
| -m[\ Computer Name] | When shutting down a network computer, allows user to choose |
| -t xx | Timer before shut down occurs. |
| -c "message" | Allows a message to be shown in the System Shutdown window. |
| :: |
Apple macOS
::figure[src="https://upload.wikimedia.org/wikipedia/commons/7/7f/MacOS_Shutdown_Box.png" caption="[[macOS]] power management dialog box"] ::
In Apple macOS the computer can be shut down by choosing "Shut Down…" from the Apple Menu, by pressing key/button (or key), or by pressing the power key to bring up the power management dialog box and selecting button "Shut down". An administrator may also use the Unix shutdown command as well. It can also be shut down by pressing key/button (or key) or clicking Shut Down on the Apple Menu while holding the key, but this will not prompt the user anything at all. On newer and some older Apple computers, starting with Mac OS 9, the user is given a time limit in which the computer will automatically shut down if the user does not click the "Shut Down" button.
Unix and Linux
| name = shutdown
| logo =
| screenshot =
| screenshot size =
| caption =
| author = Scott James Remnant
| developer = Canonical
| released =
| latest release version =
| latest release date =
| operating system = Unix-like
| genre = Command
| license =
| website =
In Unix and Linux, the shutdown command can be used to turn off or reboot a computer. Only the superuser or a user with special privileges can shut the system down.
One commonly issued form of this command is shutdown -h now, which will shut down a system immediately. Another one is shutdown -r now to reboot. Another form allows the user to specify an exact time or a delay before shutdown: shutdown -h 20:00 will turn the computer off at 8:00 PM, and shutdown -r +1 will automatically reboot the machine in one minute of issuing the command.
References
References
- [https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb491003(v%3dtechnet.10) Shutdown. Microsoft Docs]
- (26 October 2021). "Reactos/Reactos".
- [http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c01687363-4.pdf MPE/iX Commands Reference Manual – HP 3000 MPE/iX Computer Systems – Edition 11]{{Dead link. (September 2025)
- "Shut down Windows 10 with just one click (or two)". CNET.
- (11 September 2009). "Shutdown".
- {{man. 8. shutdown. Darwin
- "Mac keyboard shortcuts".
- {{man. 8. shutdown. die.net
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::