[英]How to fix psexec not running PowerShell script on VM?
我正在使用PsExec在VM上运行PowerShell脚本。 我这样执行psexec
psexec \\\\ip -c -i -u Admin -p password PowerShell C:\\Path to PowerShellscript on computer
PowerShell运行,并且在VM上打开,但立即关闭。 它在我的计算机上以cmd的形式显示了此消息
PowerShell.exe exited on ip with error code 1
如何继续解决此问题,以便可以将计算机上的PowerShell脚本运行到VM上?
我在执行psexec时删除了-c
,这似乎使它起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.