Install PowerCLI Offline

You can install all VMware PowerCLI modules in offline mode by using a ZIP file.

You might need to install PowerCLI on a local machine with no Internet connectivity due to security reasons and deployment restrictions. If you are using such an environment, you can download the PowerCLI ZIP file on a computer with Internet access, transfer the ZIP file to your local machine and install PowerCLI.

Prerequisites

  • Verify that your system is compatible with PowerCLI. See the Compatibility Matrix on the PowerCLI home page.
  • Verify that PowerShell is available on your system. For Linux and macOS, you must install PowerShell. See how to install PowerShell on different platforms.
  • For Windows, if you have PowerCLI 6.5 R1 or earlier, uninstall it.
  • Download the PowerCLI ZIP file from the PowerCLI home page and transfer the ZIP file to your local machine.

Procedure

  1. Open PowerShell on your local machine.
  2. To view the folder paths to which you can extract the PowerCLI ZIP file, run the command:
    $env:PSModulePath
  3. Extract the contents of the PowerCLI ZIP file to one of the listed folders.
  4. For Windows, run the command to unblock the copied files.
    Get-ChildItem -Path 'folder_path' -Recurse | Unblock-File

    Replace folder_path with the path to the folder where you extracted the contents of the ZIP file.

  5. (Optional) Verify that the VMware PowerCLI modules have installed successfully.
    Get-Module VMware* -ListAvailable

Results

You can now run PowerCLI on your local machine.

What to do next

Enable execution of local scripts. See Allow Execution of Local Scripts.