# 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="/files/ZHs2f0VXPxetA1g62s0K" 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...  

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jochen-meixner.gitbook.io/notes/virtualization/vmware/powercli/how-to-install-vmware-powercli-offline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
