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
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -noe -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\""
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.
It also seems you can use the
Set-PowerCliConfiguration as well – https://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-PowerCLIConfiguration.html