当我在任务计划程序中编辑并保存任务时,“用户帐户”会发生更改。作为我的用户名的用户帐户会更改为“中强制级别”。
这会阻止任务运行,因为它会引发错误Task Scheduler did not launch task "..." because user "Mandatory Label\Medium Mandatory Level" was not logged on when the launching conditions were met. User Action: Ensure user is logged on or change the task definition to allow launching when user is logged off.
(来自Event Log, 'Applications and Service Log/Microsoft/Windows/TaskScheduler/Operational'
)
我可以通过重新打开任务并将用户帐户设置回我的用户名来解决这个问题,但这很麻烦。
那么,当我保存对现有任务所做的更改时,如何防止任务计划程序修改用户帐户?