Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Last active March 21, 2025 15:40
Show Gist options
  • Save gilangvperdana/fdf4d6ad5c83b8d50e925dae117a4f66 to your computer and use it in GitHub Desktop.
Save gilangvperdana/fdf4d6ad5c83b8d50e925dae117a4f66 to your computer and use it in GitHub Desktop.
PowerCLI VMWare Installation

General

PowerCLI for VMware

Installation (tested on Windows10)

## Install Online (Run Powershell as Administrator)
Install-Module VMware.PowerCLI -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
 
## Offline Installer
- Download packet from https://developer.vmware.com/web/tool/vmware-powercli/
- Extract
- Open powerCLI (Run As Administrator)

cd \PowerCLI\
$env:PSModulePath
cp \PowerCLI\* C:\Program Files\WindowsPowerShell\Modules\
Get-ChildItem -Path C:\Program Files\WindowsPowerShell\Modules\ -Recurse | Unblock-File
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Get-PowerCLIConfiguration
Connect-VIServer -server $IP_VCENTER
Get-VMHost | Out-GridView

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment