Share via


「無法將 'Get-VM' 一詞辨識為 Cmdlet 的名稱...」安裝 Cloud Connector Edition 期間發生錯誤

徵狀

在 Cloud Connector Edition 的新安裝期間,執行 Cmdlet Install-CcInstance 失敗,您會收到下列錯誤訊息:

Get-VM : The term 'Get-VM' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\CloudConnector\Internal\MtCommon.ps1:1824 char:9
+         Get-VM | ForEach-Object {
+         ~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-VM:String) [], ParentContainsErrorRecordException
 + FullyQualifiedErrorId : CommandNotFoundException

原因

未安裝適用於 Windows PowerShell的 Hyper-V 模組。

解決方案

如果您已將 Windows Server Host 從舊版升級為 2012 R2,或已移除此 Hyper-V 功能,則必須在 Hyper-V 管理工具的 [功能] 底下安裝適用於 Windows PowerShell 的 Hyper-V 模組。

其他相關資訊

是否仍需要協助? 前往 Microsoft Community