Hi,
We are working in secure environment, so it is no possible to install PowerCLI from PowerShell Gallery.
There are lot of articles about offline installation, but I have found nothing VMware official.
With PowerCLI 11 there were no problem.
Just save modules and copy it to C:\Program Files\WindowsPowerShell\Modules.
And it worked fine.
But with PowerCLI 12.1 we have received following error when run new-vm:
New-VM -Name testVM -Template template1 -host host01
New-VM : 2/11/2021 8:54:49 AM New-VM Could not load file or assembly 'Newtonsoft.Json,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
I have found following KBs where it is said that Newtonsoft.Json.dll must be registered:
https://kb.vmware.com/s/article/79793
Does anyone know if there is any official method how to install PowerCLI 12.X offline?
Thanks.
moderator edit by wila: Moved to PowerCLI forum