- Prerequisites:
- Windows .Net Framework 2.0 (3.5 latest SP Recommended).
- Windows PowerShell (V2 Recommended).
- Install vSphere client.
- Set the ‘Execution Policy’ of PowerShell to Remote Signed.
- Run PowerShell as administrator.
- Set-ExecutionPolicy RemoteSigned
- Type Exit and press Enter to leave the PowerShell prompt.
- Do it on both PowerShell consoles: x86 and x64.
- Download the PowerCLI software to your workstation from the following URL: http://vmware.com/go/PowerCLI
- Run the PowerCLI exe file.
- Install it all the way with default values. Click next until you arrived to finish screen and click finish.
- On your desktop you will now have two icons, which allow you to launch PowerCLI, a 64 bit version and a 32 bit version.
- Copy the PowerCLI modules folder to the PowerShell modules folder:
- C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules -> C:\Windows\System32\WindowsPowerShell\v1.0\Modules
- View the new vmware modules: Get-Module -ListAvailable | ? {$_.name -like “*VMware*”}
- Example
C:\WINDOWS\system32> Get-Module -ListAvailable | ? {$_.name -like “*VMware*”}
Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PowerCLI\Modules
ModuleType Version Name ExportedCommands
———- ——- —- —————-
Binary 6.0.0.0 VMware.DeployAutomation
Binary 6.0.0.0 VMware.ImageBuilder
Binary 6.5.0.4… VMware.VimAutomation.Cis.Core
Binary 6.5.0.4… VMware.VimAutomation.Cloud
Manifest 6.5.0.4… VMware.VimAutomation.Common
Binary 6.5.0.2… VMware.VimAutomation.Core HookGetViewAutoCompleter
Binary 6.0.0.0 VMware.VimAutomation.HA
Binary 7.0.2.4… VMware.VimAutomation.HorizonView
Binary 6.5.0.4… VMware.VimAutomation.License
Binary 6.5.0.4… VMware.VimAutomation.PCloud
Manifest 6.5.0.4… VMware.VimAutomation.Sdk Get-PSVersion
Binary 6.5.0.4… VMware.VimAutomation.Storage
Binary 6.5.0.4… VMware.VimAutomation.Vds
Binary 6.5.0.4… VMware.VimAutomation.vROps
Binary 6.0.0.0 VMware.VumAutomation
- Import the modules you need: Import-Module -Name VMware.VimAutomation.Core
- The end.
Source: Back to Basics: Part 1 – Installing PowerCLI – VMware PowerCLI Blog – VMware Blogs
https://blogs.vmware.com/PowerCLI/2015/03/powercli-6-0-introducing-powercli-modules.html