当安全选项“运行用户是否登录”时,schtasks 不会在我的脚本中运行“shutdown -l”命令?

问题描述

我希望能够在我的脚本或批处理文件中执行 shutdown -l 命令,但它只会在 (Security options) : Run only when user is logged on 中执行。问题是 Schtasks 每次执行时都会调用一个 Cmd Windows。要解决该问题,请执行以下操作,但 shutdown -l 将无法在脚本中执行。

当我必须选择 (Security options) : Run whether user is logged on or not. 时有什么解决办法?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)