问题描述
我有一个文件,我在系统帐户下使用此命令(路径是虚拟的)启动该文件。我启动 psexec -is cmd
然后启动它:
powershell -ExecutionPolicy Bypass -Noninteractive -File "\\share\file.ps1" -Config "\\share\Config.xml" -Webservice "http://script/endpoint"
它给了我完成的每个步骤的输出。我想使用 system account
在远程机器上的 psexec \\computername -s cmd
下远程启动此命令,但脚本失败(原因未知)。
如果我在本地启动 powershell -ExecutionPolicy Bypass -Noninteractive -File "\\share\file.ps1" -Config "\\share\Config.xml" -Webservice "http://script/endpoint"
,它会工作并给我输出。
我在 Internet 上阅读,但不知道为什么 psexec \\computername -s cmd
无法正确启动它。可能是什么问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)