psexec给系统找不到指定的文件 [英] psexec giving the system cannot find the file specified
本文介绍了psexec给系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从我的win7 CMD(作为管理员)运行这个:
psexec IpAddress -u domain\\ user -p pword c:\Autobatch\ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml
但我得到系统找不到指定的文件错误。
've also try it this way:
psexec IpAddress -u domain\user -p pword c:\Autobatch\ ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml
但得到未知的用户或密码错误。
很奇怪的是,我可以通过远程桌面连接相同的IP地址和用户/
解决方案确保服务器具有以下设置:
a)启用管理共享:运行services.msc并检查服务服务器是否已启用
b)在注册表中添加共享的密钥并重新启动:
reg addHKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters/ v AutoShareServer / t REG_DWORD / d 1
然后使用:
psexec \\IpAddress -u domain\user - p pword -wc:\AutobatchClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml
I'm trying to run this from my win7 CMD (as Admin):
psexec IpAddress -u domain\user -p pword c:\Autobatch\ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml
but am getting a "the system cannot find the file specified" error.
I've also tried it this way:
psexec IpAddress -u domain\user -p pword c:\Autobatch\ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml
but get a unknown user or bad password.
What's weird is that I can connect via Remote desktop with the same IP address and user/pass.
解决方案Make sure the server has the settings below:
a) Admin share is enabled: run services.msc and check the Service "Server" is enabled b) Add the key for the share in the registry and restart: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v AutoShareServer /t REG_DWORD /d 1
And then use:
psexec \\IpAddress -u domain\user -p pword -w "c:\Autobatch" "ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml"
这篇关于psexec给系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文