# How to install VMware PowerCLI offline

Download the PowerCLI package from and save the ZIP file on your PC\
<https://developer.vmware.com/web/tool/vmware-powercli>

The URL is redirected to this one after VMware's acquisition by Broadcom\
<https://developer.broadcom.com/tools/vmware-powercli/latest>

<figure><img src="https://1698785090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHt7y5a2GjJdHqd7hhajt%2Fuploads%2FO6j4Tj1XAlQwEKSMwrqW%2FPowerCLI.png?alt=media&#x26;token=e4dd4051-69e8-4398-a266-17870c2e49c1" alt=""><figcaption></figcaption></figure>

Extract the content of the ZIP file to a directory on your PC.

To install PowerCLI you have to determine the PowerShell Module Paths

```powershell
$env:PSModulePath
```

Result:

```
C:\Program Files\WindowsPowerShell\Modules;
C:\Windows\system32\WindowsPowerShell\v1.0\Modules;
...
```

Change into the Powershell Modules directory\
C:\
cd`\Program Files\WindowsPowerShell\Modules`

Copy the extracted content of the ZIP file to one of these directories, e.g. \
`C:\Program Files\WindowsPowerShell\Modules`

Make sure that the copied files and folders are not read-only.\
Run the following command to set them to read-write:

```powershell
Get-Childitem * -recurse -Force | Foreach {$_.IsReadOnly=$False}
```

Unblock the new files in Powershell with the following command:

```powershell
Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules' -Recurse | Unblock-File
```

\
Check if PowerCLI is active

```powershell
Get-Module -Name VMware.PowerCLI* -ListAvailable
```

You will get an output like this:

```
     Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                       
---------- -------    ----                                ----------------                                                                                                                                                                                       
Manifest   13.0.0.... VMware.PowerCLI                                                                                                                                                                                                                            
Script     12.6.0.... VMware.PowerCLI.Sdk                                                                                                                                                                                                                        
Script     12.6.0.... VMware.PowerCLI.Sdk.Types                                                                                                                                                                                                                  
Script     12.6.0.... VMware.PowerCLI.VCenter             {Get-VIMachineCertificate, Get-VITrustedCertificate, Remove-VITrustedCertificate, New-VIMachineCertificateSigningRequest...}                                                                           
Script     12.6.0.... VMware.PowerCLI.VCenter.Types.Ap...                                                                                                                                                                                                        
Script     12.6.0.... VMware.PowerCLI.VCenter.Types.Ce...  

```
