Dela via


"Termen "Get-VM" känns inte igen som namnet på en cmdlet ..." fel vid installation av Cloud Connector Edition

Symptom

Under en ny installation av Cloud Connector Edition misslyckas körningen av cmdleten Install-CcInstance och du får följande felmeddelande:

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

Orsak

Hyper-V-modulen för Windows PowerShell är inte installerad.

Åtgärd

Om du har uppgraderat Windows Server Host från en tidigare version till 2012 R2 eller om du har tagit bort den här Hyper-V-funktionen måste du installera Hyper-V-modulen för Windows PowerShell i Hyper-V-hanteringsverktygen under "Funktioner".

Mer information

Behöver du fortfarande hjälp? Gå till Microsoft Community.