我最近已迁移到 64 位 Windows Server 2008 R2。我将计划任务设置为在专门为调度程序创建的一个用户 (TaskUser) 下运行,大多数任务运行正常。但是其中一些任务不在 TaskUser 下运行,而是以我自己的凭据运行。
这是我找到的事件日志条目,根据我的研究,我认为它没有权限,但实际上它有权限。它还选中了“以最高权限运行”选项。我见过这个复选框在某些任务上发挥了神奇的作用,但对于很多任务来说它却毫无帮助。
错误是错误高度要求但用户是管理员组的成员,具有文件夹/文件权限,并设置为“以最高权限运行”
Log Name: Microsoft-Windows-UAC/Operational
Source: Microsoft-Windows-UAC
Date: 4/27/2010 2:21:44 PM
Event ID: 1
Task Category: (1)
Level: Error
Keywords:
User: LIVE\TaskUser
Computer: www2
Description:
The process failed to handle ERROR_ELEVATION_REQUIRED during the creation of a child process.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-UAC" Guid="{E7558269-3FA5-46ED-9F4D-3C6E282DDE55}" />
<EventID>1</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>1</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2010-04-27T21:21:44.407053800Z" />
<EventRecordID>19</EventRecordID>
<Correlation />
<Execution ProcessID="2460" ThreadID="5960" />
<Channel>Microsoft-Windows-UAC/Operational</Channel>
<Computer>www2</Computer>
<Security UserID="S-1-5-21-4017510424-2083581016-1307463562-1640" />
</System>
<EventData></EventData>
</Event>
任务计划程序历史记录选项卡中显示的错误显示了这些结果和状态
This operation requires an interactive window station. (0x800705B3)
事件 ID 103
Task Scheduler failed to launch action
"F:\App\Path\ConsoleApp.exe" in instance "{1a6d3450-b85a-40c0-b3db-72b98c1aa395}" of task "\taskFolder\taskName".
Additional Data: Error Value: 2147943859.
事件 ID 203
Task Scheduler failed to start instance "{1a6d3450-b85a-40c0-b3db-72b98c1aa395}" of "\taskFolder\taskName" task for user "LIVE\TaskUser" .
Additional Data: Error Value: 2147943859.