我有一个Windows批处理脚本,我试图让Veritas Cluster Server使用进程代理进行控制。
批处理脚本需要以特定的用户身份运行,但是当我尝试联机资源时,事件日志中出现以下错误:
Source: AgentFramework Event ID: 6532 Process:<<resource name>> Failed to launch the program <<path to batch script>>. Error = 1385
当我在这里查找错误代码时,它显示为:
Logon failure: the user has not been granted the requested logon type at this computer.
所以有问题的用户帐户无法login。 该用户帐户已经运行一些服务,并已被授予login作为服务的权利。 我也把这个日志作为一个批处理作业添加了,但问题仍然存在。
那么我需要分配哪些权限才能让VCS以该用户的身份启动批处理脚本?
操作系统是Windows Server 2003,VCS是5.0版。
打开您的Administrative Tools
> Local Security Policy
。 在“ Security Settings > Local Policies > User Rights Assignment
>确保将您的用户设置Log on as a batch job
。
检查c:\windows\system32\cmd.exe
权限 – 确保用户具有Execute
权限。