问题描述
我遇到了一个奇怪的问题.我已经安排了一个任务来启动批处理文件.当我使用选项仅在用户登录时运行
运行任务时,一切正常.但我想在后台运行这个任务,因此我使用选项运行它,无论用户是否登录
.现在,当我运行任务时,它不起作用.我收到以下 2 个错误.我不明白这个错误.请帮我解决这个问题.
任务计划程序无法在任务\stmm\Daemon"的实例{2a7cc950-fad9-4633-9701-af75a0fd220d}"中启动操作C:\Windows\SYSTEM32\cmd.exe".附加数据:错误值:2147942667.任务计划程序无法为用户GBLADHEDANI\N011940"启动\stmm\Daemon"任务的实例{2a7cc950-fad9-4633-9701-af75a0fd220d}".附加数据:错误值:2147942667.
我遇到了同样的问题.
在 Microsoft 知识库文章 2452723 中找到了适合我的解决方案:
I am facing a strange problem. I have scheduled a task to lauch a batch file. When I run the task with option Run only when user is logged on
everything works fine. but I want to run this task in background and hence i am running it using the option Run whether user is logged on or not
. Now when i run the task it is not working. I get following 2 errors. I don't understand this error. Please help me resolve this issue.
Task Scheduler failed to launch action "C:\Windows\SYSTEM32\cmd.exe" in instance "{2a7cc950-fad9-4633-9701-af75a0fd220d}" of task "\stmm\Daemon". Additional Data: Error Value: 2147942667.
Task Scheduler failed to start instance "{2a7cc950-fad9-4633-9701-af75a0fd220d}" of "\stmm\Daemon" task for user "GBLADHEDANI\N011940" . Additional Data: Error Value: 2147942667.
I had this same issue.
The solution for me was found in the Microsoft KB Article 2452723:
Basically, edit your scheduled task and take the Quotes out of the Start In field:
- Open your Scheduled Task
- Switch to "Actions" tab
- Open your Action
- Remove Quotes (") from the field "Start in (optional)"
- Save and close all open dialogs
To get the relevant error message:
1) Convert 2147942667 to hex: 8007010B
2) Take last 4 digits (010B) and convert to decimal: 267
3) Run: net helpmsg 267
4) Result: "The directory name is invalid."
这篇关于为什么 Windows 7 任务计划程序任务失败并显示错误 2147942667的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!