Logoff

Verb: logoff

Available from: <Enterprise>

Disconnects the current user session on the machine.

Syntax

logoff

Example

The Logoff command disconnects the current session if the user types "yes" in the input generated by the Input Box command.

defVar --name logoffResult --type String
// Opens a box for the user to type "yes" if they want to disconnect.
inputBox --title "type \"yes\" to logoff" --prompt "Type here" --value no logoffResult=value
if --left "${logoffResult}" --operator "Equal_To" --right yes
// Disconnect if the user typed "yes".
	logoff
endIf

See Also

  • Check If Virtual Machine
  • Count Monitors
  • Get Display Devices
  • Get Screen Resolution
  • Get System Folder Path
  • Lock the Machine
  • Run
  • Set Screen Resolution
  • Shutdown