使用“schtasks /run /s”运行远程任务时出错
我想远程运行任务。因此,我创建了一个 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然。
schtasks
控制 Windows Vista 中引入的新任务计划程序。 XP 仍然使用可追溯到 Windows 2000 的古老版本。各自的功能和界面也有很大不同。因此,虽然at
和schtasks
都可以在当前系统上运行(因为旧接口已映射到新接口),但 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 bothat
andschtasks
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 whichschtasks
manages. No surprise here that it simply won't work.You can try doing the same with
at
.虽然不理想,但您也可以从 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'