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