Powershell 32-bit and PowerCLI – Web Proxy Error

While trying to launch VMWare PowerCLI in 32-bit mode (to run certain commands like New-OSCustomizationSpec) I was getting an error

error creating the web proxy specified in the ‘system.net/defaultproxy’ configuration section

even though I had been using PowerCLI 64-bit for months. How odd.

Using the 32-bit shortcut in cmd.exe

and trying to manually load the snappin in Powerhsell x86 via Add-PsSnapin Vmware*Core resulted in the same error.

Turns out if you make this modification tot he x86 powershell.exe.config file it will resolve the issue.

e.g. C:\windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe.config

It also seems you can use the Set-PowerCliConfiguration as well – https://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-PowerCLIConfiguration.html

Leave a Reply

Your email address will not be published. Required fields are marked *