VMware Cloud Community
b1naryagent
Contributor
Contributor

Replacement PowerCli Shortcut For Powershell 3/VUM Compatibility

Not really for compatibility but to launch in Powershell 2 mode so VUM & View snapins won't crash.

Open the properties of your PowerCli shortcut and replace the command with this.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -version 2 -psc "C:\PROGRA~2\VMware\Infrastructure\VSPHER~1\vim.psc1" -noe -c ". \"C:\PROGRA~2\VMware\Infrastructure\VSPHER~1\Scripts\Initialize-PowerCLIEnvironment.ps1\""

If you just add "-version 2" to the current command you'll get errors. These errors are caused because the length of the command is over the 259 character limit. I used the 8.3 notation to get around the limitation. You might want to verify the paths on your system.

1 Reply
CNI0
Enthusiast
Enthusiast

I would prefer that VMware would upgrade the PowerCLI VUM to support Powershell Version 3 directly. In my eyes this is a very embarrassing fault....