マシンのロック
verb: lockWorkStation
使用可能: < エンタープライズ (Enterprise>)
コマンドが実行されているマシンをロックします。
構文
lockWorkStation
例
入力ボックス・コマンドによって生成される入力にユーザーが「yes」を入力した場合に、このコマンドで、実行されているマシンをロックします。
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