注销

动词:logoff

可从以下位置获取: <Enterprise>

断开机器上的当前用户会话连接。

语法

logoff

示例

如果用户在输入框命令生成的输入中输入“是”,那么使用注销命令断开当前会话的连接。

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

另请参阅

  • 检查是否为虚拟机
  • 监视器计数
  • 获取显示设备
  • 获取屏幕分辨率
  • 获取系统文件夹路径
  • 锁定机器
  • 运行
  • 设置屏幕分辨率
  • 关闭