VMware PowerCLI
VMware PowerCLI
Install PowerCLI on Linux
-
Install PowerShell.
# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
# Install PowerShell
sudo dnf install --assumeyes powershell
# Start PowerShell
pwsh -
Install PowerCLI module online.
PS C:\> Install-Module -Name VMware.PowerCLI
-
Option, install PowerCLI module offline.
Download the PowerCLI ZIP file from the PowerCLI home page and transfer the ZIP file to your local machine.
# To view the folder paths to which you can extract the PowerCLI ZIP file, run the command:
$env:PSModulePath
# Extract the contents of the PowerCLI ZIP file to one of the listed folders.
unzip -q -d <PSModulePath> <PowerCLI ZIP file>
# For Windows, run the command to unblock the copied files.
Get-ChildItem -Path 'unzipped_folder_path' -Recurse | Unblock-File -
Verify that the VMware PowerCLI modules have installed successfully.
Get-Module VMware* -ListAvailable
Commands Reference
・ VMware vSphere And vSAN cmdlets
# Connects to a vSphere server. |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.