Fehler "Get-PowerCLIVersion : The term 'Get-PowerCLIVersion' is not recognized as the name of a cmdlet, function, script file, or operable program." Beim Starten von VMware vSphere PowerCLI

Fehler "Get-PowerCLIVersion : The term 'Get-PowerCLIVersion' is not recognized as the name of a cmdlet,   function, script file, or operable program." Beim Starten von VMware vSphere PowerCLI

Manchmal erscheint der folgende Fehler beim Starten von VMware vSphere PowerCLI:

Get-PowerCLIVersion : The term 'Get-PowerCLIVersion' 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 (x86)\VMware\Infrastructure\vSphere
PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1:38 char:12
+ $version = Get-PowerCLIVersion
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-PowerCLIVersion:String) [], CommandNotFoundExce
ption
+ FullyQualifiedErrorId : CommandNotFoundException

 

Fehler "Get-PowerCLIVersion : The term 'Get-PowerCLIVersion' is not recognized as the name of a cmdlet,   function, script file, or operable program." Beim Starten von VMware vSphere PowerCLI

 

Um dieses Problem zu lösen, versuchen Sie Powershell als Administrator zu starten und führen Sie die folgenden Befehle aus (die PowerCLI-Module werden der globalen Variablen auf Systemebene hinzugefügt):

$CurrentValue = [Environment]::GetEnvironmentVariable("PSModulePath", "Machine")
[Environment]::SetEnvironmentVariable("PSModulePath", $CurrentValue + ";C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules", "Machine")

 

 

vmware (de), powershell (de)

  • Zugriffe: 2543
Kommentar schreiben

Related Articles