我正在 Windows 2003 Server 上运行计划任务(用于 Powershell 脚本)。我相信脚本工作正常。该任务计划从每天早上 7:00 到晚上 11:50 每 10 分钟运行一次。但是,它的运行时间永远不会超过一天。它总是在下午的某个时间(下午 2 点到 6 点之间)停止。我不确定到底发生了什么,但我总是收到错误
The attempt to log on to the account associated with the task failed, therefore, the task did not run.
The specific error is:
0x80070569: Logon failure: the user has not been granted the requested logon type at this computer. Verify that the task's Run-as name and password are valid and try again.
似乎大多数出现此错误的人都在说他们需要让用户“作为批处理作业登录”。但是,这个选项对我来说是灰色的。我搜索了其他用户有类似问题但没有详细编写解决方案的地方(其中一些与GPO有关)。我只使用了 Windows Server 的基本功能,我不知道如何到达他们所指的地方。
有人可以确认“作为批处理作业登录”是否确实是一个解决方案并提供有关如何解决我的问题的详细演练?
谢谢,