XenoGuard Documentation

System Shutdown

Actions » Windows » Operating System » General » System Shutdown 

The action System Shutdown turns off, restarts, suspends, hibernates, and logs off the computer system.

[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the Operating System node.
  3. In the General node, select the System Shutdown action.


The action has the following input parameters:

name Description
The type of shutdown option to be executed.

Allowed Values: Shutdown, Restart, Suspend, Hibernate, Log Off

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Specifies whether the operation should be forced regardless of unsaved files or running programs. 

Allowed Context Scope
Allowed Value [Boolean]

Example 1 (Restart computer after software installation):

This example creates a local variable, Installer, with Text as data type and stores the path of the executable file to be installed. If the file exists in the given directory, the installation process is executed and asks the user to confirm whether to restart the system after installation or done manually on a later time. 

See other OS General operations:

Run Shell Command
Get Environment Information
Empty Recycle Bin
Lock Screen