Search notes:

shutdown.exe

Shutdown and annotation tool.

Shutdown the computer

/t 0 specifies the time in seconds (/t 0 = immediately).
/s means the computer.
C:\> shutdown /s /t 0
The command might be augmented with /f to force all applications to be closed.

Hibernate the computer

The /h option allows to hibernate a computer from the command line (cmd.exe or PowerShell):
C:\> shutdown /h

Shutdown and restart

Use /r rather than /s:
C:\> shutdown /r /t 0

Log the current user off

With /l (ell), the current user can log him/herself out:
C:\> shutdown /L

See also

logoff.exe
The Linux shell command shutdown

Index