VMware PowerCLI 10 Setup

Posted on Posted in Powershell, VMware

I found that the latest version of PowerCLI 10 ran fine in 32-bit mode but VS Code, Powershell ISE, or Powershell console in 64-bit mode were unable to load the module.  I would get the following errors when trying to import the newly installed module:

  • Could not load file or assembly ‘log4net, Version=, Culture=neutral, PublicKeyToken=692fbea5521e1304’
    or one of its dependencies. The system cannot find the file specified.
  • Unable to find type [VMware.VimAutomation.Sdk.Interop.V1.CoreServiceFactory]

Quick fix: