Having issues with PowerCLI 6.5.1 build 5377412, when trying to assign a software depot. When attempting to do so, I get the following error:
Add-EsxSoftwareDepot : The type initializer for 'VMware.ImageBuilder.Impl.IfServer' threw an exception.
At line:1 char:1
+ Add-EsxSoftwareDepot $software_depot
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-EsxSoftwareDepot], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,VMware.ImageBuilder.Commands.AddDepot
My modules are as follows:
PS C:\Users\> Get-PowerCLIVersion
WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.
PowerCLI Version
----------------
VMware PowerCLI 6.5.1 build 5377412
---------------
Component Versions
---------------
VMware Cis Core PowerCLI Component 6.5 build 6983166
VMware VimAutomation Core PowerCLI Component 6.5 build 6234650
VMware SRM PowerCLI Component 6.5 build 5374694
VMware Licensing PowerCLI Component 6.5 build 5375648
VMware Vds PowerCLI Component 6.5 build 5374428
VMware vROps PowerCLI Component 6.5 build 5375723
VMware Nsxt PowerCLI Component 2.0 build 6870461
VMware Vmc PowerCLI Component 6.5 build 7086404
VMware HA PowerCLI Component 6.0 build 7147627
VMware HorizonView PowerCLI Component 7.1.0 build 5307191
VMware Cloud PowerCLI Component 6.5 build 5375799
VMware PCloud PowerCLI Component 6.5 build 5376282
VMWare ImageBuilder PowerCLI Component 6.6 build 6997673
VMWare AutoDeploy PowerCLI Component 6.6 build 6997673
VMware Storage PowerCLI Component 6.5 build 7154886
VMware vSphere Update Manager PowerCLI 6.6 build 5301639
Any ideas as to what may be causing this?