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:
Does anyone know if there is any official method how to install PowerCLI 12.X offline?
moderator edit by wila: Moved to PowerCLI forum
We are working in secure environment.
I cannot register any library because I have found KB with similar (not exactly same) problem.
I need official VMware offline installation steps.
I don´t understand why offline installation is not part of official PowerCLI docs.
I think there must be lot of companies where online installation is not possible.
I have tested it on computer outside our environment. Both 12.1 and 12.2 versions.
There is no problem.
Now with official docs I can proove that we do installation correctly and there is no error outside our environment.
So I can ask our security team if the library is not blocked by a security software.
It takes a while...
Thanks for your help!