[BAT]通过schtasks.exe远程调用windows 2008 server上的计划任务,提示ERROR : Access is denied
2014-07-03 13:50
495 查看
在windows 2008 server 上建了一个计划任务,想通过命令
schtasks /run /tn "IPADForAdvisor_QA_APITest" /s SZPCWIN2K801 /u msdomain1\jzhang6 /p jzhang6'spassword
来远程启动这个计划任务,总是提示ERROR : Access is denied
登录的这个用户名和密码是在 SZPCWIN2K801 的 Administrators Group 里面的,而且是在同一个域里。
如果我把这个计划任务建在一个win 7的机器上,就可以执行成功。
在Google搜了一圈,各种方法都尝试了,包括:
方法1:Add the right to log on as a batch job. e.g.: go to Administrative tool > Local security policy > Local Policies > User Rights Assignment > Logon as a batch job > Add.
方法2:I gave the user Read+Execute (and even Full Control) to the C:\windows\tasks folder on the server.
BUT 只有一个方法奏效了:
网上是这样描述的:
According to the Help text, the user must be a member of the local Administrators group, the local Backup Operators group,
the domain Server Operators group, or have been delegated the appropriate authority, on the local computer。
我就做了一个操作: Add the user to this group "the local Backup Operators group",问题就解决了。
schtasks /run /tn "IPADForAdvisor_QA_APITest" /s SZPCWIN2K801 /u msdomain1\jzhang6 /p jzhang6'spassword
来远程启动这个计划任务,总是提示ERROR : Access is denied
登录的这个用户名和密码是在 SZPCWIN2K801 的 Administrators Group 里面的,而且是在同一个域里。
如果我把这个计划任务建在一个win 7的机器上,就可以执行成功。
在Google搜了一圈,各种方法都尝试了,包括:
方法1:Add the right to log on as a batch job. e.g.: go to Administrative tool > Local security policy > Local Policies > User Rights Assignment > Logon as a batch job > Add.
方法2:I gave the user Read+Execute (and even Full Control) to the C:\windows\tasks folder on the server.
BUT 只有一个方法奏效了:
网上是这样描述的:
According to the Help text, the user must be a member of the local Administrators group, the local Backup Operators group,
the domain Server Operators group, or have been delegated the appropriate authority, on the local computer。
我就做了一个操作: Add the user to this group "the local Backup Operators group",问题就解决了。
相关文章推荐
- windows 2008 server 域环境通过组策略下发计划任务
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 和ERROR 1820解决办法wan
- 在IIS7.5打开网页的时候,提示: HTTP 错误 500.0 - Internal Server Error 调用 LoadLibraryEx 失败,在 ISAPI 筛选器 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll" 上。解决方法
- 利用windows计划任务定时调用BAT执行oracle数据库重建索引
- Windows 10系统点击任务计划程序,提示找不到远程电脑如何处理
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- Windows 2008 远程登陆时提示"要登录到此远程计算机,您必须被授予允许通过终端登录登录的权限"
- Windows Server 2008通过计划任务定时执行bat文件
- Server2008R2计划任务调用C#调用File.Exists()远程校验文件是否存在失败的原因
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\xxx' -- 'Access is denied. '
- ECS Windows 2008 远程登陆时提示"要登录到此远程计算机,您必须被授予允许通过终端登录登录的权限"
- 80070005 Access is denied in Windows 2008
- QTP Test ,VAPI-XP Test,LR Test 和ALM 集成远程分布式执行遇到的“access is denied ” “unspecified error”问题
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- windows下通过bat脚本和计划任务实现设置某一服务的守护进程
- server 2008 添加任务计划bat脚本不生效
- Windows 2008计划任务,错误Additional Data: Error Value: 2147750687.
- 通过windows任务计划来备份数据库以及检测apache是否正常运行-sever 2008 Apache优化配置
- [BAT]远程调用计划任务