簡體   English   中英

Invoke-vmscript無法執行,並且在接收時發生意外錯誤

[英]Invoke-vmscript fails to execute with unexpected error occurred on a receieve

在Linux機器上運行以下命令,它失敗並顯示以下錯誤:

Invoke-VMScript <<<<  -VM $machine.Name -ScriptType Bash -GuestUser $UserName -GuestPassword $Password -ScriptText $cmd -ToolsWaitSecs 400

錯誤:

Invoke-VMScript        The underlying connection was closed: An unexpected error occurred on a receive.
    + CategoryInfo          : NotSpecified: (:) [Invoke-VMScript], ViError
    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DownloadFileFromGuest_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript

斷開並重新連接到VI服務器,這應該可以解決問題。 斷開VIServer-服務器*-確認:$ false-強制連接VIServer-服務器$ vcIP-協議https-用戶$ vcUser-密碼$ vcPW

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM