Backtrack:

by lunarg on February 18th 2021, at 17:35

Offline installation of PowerCLI module is possible by following these easy steps:

1. Uninstall all older PowerCLI software (6.5R1 or earlier).
3. Transfer the ZIP to the machine on which PowerCLI is to be installed.
4. Open Powershell on the target machine.
5. To determine the modules folder paths, run this:
\$env:PSModulePath
The modules will have to be extracted in one of the folders from the output of the above command. Both user-based and machine-based installation is possible (e.g. C:\Windows\System32\WindowsPowerShell\v1.0\Modules).
6. Extract the contents of the ZIP file directly into the folder.
7. For Windows, run this command to unblock the files (they are considered foreign):
8. Get-ChildItem -Path 'path\to\modules\folder' -Recurse | Unblock-File
9. Optionally, verify the successful installation:
Get-Module VMware* -ListAvailable

 « ‹ January 2022 › » Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31