SHUTDOWN(8)

NAME
shutdown - bring the system down.

SYNOPSIS
shutdown [options] TIME [MESSAGE]

DESCRIPTION
shutdown brings the system down in a safe way.

TIME may have different formats, the most common is simply the word 'now' which will bring the system down immediately. Other valid formats are +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24 hour clock. A single number will be treated as the number of seconds before shutting down.

MESSAGE is an optional warning message that will be shown on the console and is sent to all logged on users. If no message is supplied a default message is created. This message is stored in Windows System Event Log as well.

OPTIONS

-f, --force
    Forces the execution. This can cause applications to lose data.

-h, --halt
    The system will shutdown and power off. This is the default action. The system must support the power-off feature, but most systems do.

-s, --shutdown
    Same as --halt. Here for compatibility with the Windows shutdown command line tool.

-r, --reboot
    The system will shutdown and then restart.

-b, --hibernate
    The system will suspend to disk. The system must support the hibernate feature.

-p, --suspend
    The system will suspend to RAM. This is also known as sleep or standby. The system must support the suspend feature.

-i, --install
    Install Windows Updates during shutdown or reboot. This is only supported on Windows Vista, Windows Server 2008 and later. Doesn't work with --exitex.

-H, --hybrid
    Shutdown in hybrid mode and prepare it for fast startup. This is only supported on Windows 8, Windows Server 2012 R2 and later. Doesn't work with --exitex or with --install.

-c, --cancel
    Aborts the execution of formerly started shutdown or reboot.

-a, --abort
    Same as --cancel. Here for compatibility with the Windows shutdown command line tool.

-x, --exitex
    Use ExitWindowsEx rather than InitiateSystemShutdownEx or InitiateShutdown.

--help
    Display a help text and exit.

--version
    Display version information and exit.

AUTHORS
shutdown was written by Corinna Vinschen and Frank Fesevur.

COPYRIGHT
Copyright 2005-2016 Corinna Vinschen, Frank Fesevur. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO
reboot(8)

REPORTING BUGS
Please send bug reports to cygwin@cygwin.com