To shut down 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.
In Microsoft Windows, a PC or server is shut down by selecting the Shutdown 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. There is also a shutdown
command that can be executed within a command shell window. shutdown.exe
is the command-line shutdown application that can shut down the user's computer or another computer on the user's network.
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.
In macOS the computer can be shut down by choosing "Shut Down…" from the Apple Menu 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 [Alt]+[Command]+[Eject optical disc on optical drive] but this will not prompt the user anything at all.