schtasks 命令的问题

发布于 2024-11-24 10:29:05 字数 254 浏览 4 评论 0原文

这是我执行的命令

schtasks /create /SC once /TN note /TR notepad /ST 17:00
WARNING: The Scheduled task "note" has been created, but may not run 
         because the account information could not be set.

该警告是什么意思。为什么它不起作用?

This is the command i executed

schtasks /create /SC once /TN note /TR notepad /ST 17:00
WARNING: The Scheduled task "note" has been created, but may not run 
         because the account information could not be set.

What does that Warning mean.Why its not working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坏尐絯℡ 2024-12-01 10:29:05

根据微软的文档,该警告意味着它不允许它在用户权限下运行。

“此警告表明远程域无法进行身份验证
/u 参数指定的帐户。在这种情况下,远程
域无法验证用户帐户,因为本地
计算机不是远程计算机域所在域的成员
信任。发生这种情况时,任务作业将出现在列表中
计划任务,但任务实际上是空的,不会运行。”

我会尝试使用用户和密码参数,看看它是否运行。

According to Microsoft's documentation the warning means that its not allowing it to run under the user permissions.

"This warning indicates that the remote domain could not authenticate
the account specified by the /u parameter. In this case, the remote
domain could not authenticate the user account because the local
computer is not a member of a domain that the remote computer domain
trusts. When this occurs, the task job appears in the list of
scheduled tasks, but the task is actually empty and it will not run."

I would try using the user and password params and see if it runs then.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文