shutdown

shut down the system with warning 

Command


SYNOPSIS

shutdown [-S hostname] [-q] [-h | -r] [time [ warning-message ...]]

shutdown -c [-S hostname]


DESCRIPTION

The shutdown utility schedules the shutdown of a local or remote system at (or after) a specified time and warns all users logged into that system of the upcoming shutdown. You must have administrator privileges on the system being shut down to use this utility.

The time argument indicates when to shut the system down and can be one of the following:

now 

shuts down the system immediately.

+number 

shuts down the system in number seconds.

[[[[CC]YY]MM]DD]hhmm[.ss

shuts down the system at the specified date and time.

Any additional arguments following time comprise an additional warning-message that is broadcast to all users along with the warning of the upcoming shutdown.

Options

-c 

cancels a system shutdown scheduled by an earlier shutdown command.

-h 

shuts down the system with no restart. This is the default behavior if the -h or -r option is not specified.

-q 

does not prompt the user to save when shutting down user programs.

-r 

restarts system immediately after it is shut down.

-S hostname 

shuts down the remote computer named hostname. If this option is not specified, the local system is shut down.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


PORTABILITY

Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
halt


PTC MKS Toolkit 10.4 Documentation Build 39.