[英]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.