Register-SystemShutdown

Shut down a Windows system and optionally reboots it. This command corresponds to the command line program shutdown.exe

.


Settings:

  • Message
    The additional message to be displayed during system shutdown.
  • Timeout
    Specified in seconds until shutdown is actually initiated.
  • Force logoff
    If this option is activated, running programs are terminated and all unsaved data is lost. The computer will shut down without informing the user; the user cannot prevent the shutdown.
  • Reboot workstation
    If this option is activated, the computer is automatically restarted.
  • Ask user before shutting down Windows 
    If this option is activated, the user is prompted and can cancel the restart.


Example:

The following example restarts the computer with half a minute's advance.


Corresponds to DSM eScript command:

  • InitiateSystemShutDown


See also: