Lock the Machine
Verb: lockWorkStation
Available from: <Enterprise>
Locks the machine on which the command is being executed.
Syntax
lockWorkStation
Example
This command locks the machine on which it is executed, if the user types "yes" in the input generated by the Input Box command.
defVar --name blockSuccess --type String
// Opens a box for the user to type "yes", if he wants to block the machine.
inputBox --title "Type \"yes\" to lock" --prompt "Type here" --value no blockSuccess=value
if --left "${blockSuccess}" --operator "Equal_To" --right yes
// Blocks the machine, if the user typed "yes".
lockWorkStation
endIf