Hi all,
After much agonizing, I decided to do a PowerCLI upgrade to 6.5 with the fancy new install-module install
Modules install just fine, but connecting to the vCenter, however, does not work. It throws the following error:
PS C:\Program Files\PowerShell\6.0.1> Connect-VIServer vcenter
Connect-VIServer : The type initializer for 'VMware.VimAutomation.Sdk.Interop.V1.CoreServiceFactory' threw an exception.At line:1 char:1
+ Connect-VIServer vcenter
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer
Now, I get the same error on bot a Windows 7 AND a windows 10 system. That leads me to blame the operator (i.e. me), but these error messages throw me and google isn't helping.
I am sure this is a simple fix?