使用“schtasks /run /s”运行远程任务时出错

发布于 2024-10-07 14:05:08 字数 268 浏览 0 评论 0原文

我想远程运行任务。因此,我创建了一个 .bat,但

schtasks /run /s 111.20.123.160 /u Administrator /p password /tn "Task"

出现了一个错误:“FEHLER: Die Anforderung wird nicht unterstützt”。 我还尝试了不同的用户(普通用户和管理员)和计算机名或IP。

我的系统:Win7,远程系统:WinXP ...是否存在已知问题?

I want to run a task remotely. Therefore I created a .bat with

schtasks /run /s 111.20.123.160 /u Administrator /p password /tn "Task"

I just get an error: "FEHLER: Die Anforderung wird nicht unterstützt."
I also tried different users (normal and admin) and computername or IP.

My system: Win7, remote system: WinXP ... are there known issues?

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

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

发布评论

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

评论(2

夜唯美灬不弃 2024-10-14 14:05:08

当然。 schtasks 控制 Windows Vista 中引入的新任务计划程序。 XP 仍然使用可追溯到 Windows 2000 的古老版本。各自的功能和界面也有很大不同。因此,虽然 atschtasks 都可以在当前系统上运行(因为旧接口已映射到新接口),但 XP 根本没有 schtasks 管理的新任务计划程序版本。毫不奇怪,它根本行不通。

您可以尝试对 at 执行相同的操作。

Of course. schtasks controls the new task scheduler introduced with Windows Vista. XP still uses the ancient one that dates back to Windows 2000. The respective capabilities are vastly different for one and the interface as well. So while both at and schtasks work on a current system (because the old interface is mapped onto the new one), XP simply does not have the new task scheduler version which schtasks manages. No surprise here that it simply won't work.

You can try doing the same with at.

青瓷清茶倾城歌 2024-10-14 14:05:08

虽然不理想,但您也可以从 XP 复制“Schtasks”并将其放入 Windows 7 计算机上的另一个文件夹中,或者将其放入 W7 机器上的“System32”文件夹中,但将其重命名为“XPSchedTask”。然后,当您需要在 Windows XP 机器上执行计划任务时,只需调用“XPSchedTask”而不是“SchedTask”

While not ideal, you could also just copy the 'Schtasks' from XP and put it in another folder on the Windows 7 machine or put it in your 'System32' folder on the W7 box but rename it to 'XPSchedTask'. Then when you need to execute a scheduled task on a Windows XP box, you just call 'XPSchedTask' instead of 'SchedTask'

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