On April 8th we had a very good DutchVMUG meeting, which was totally dedicated to using PowerCLI and The VESI (Virtualization EcoShell Initiative). Although setting up the environment is straightforward, I wanted to do a small write-up which leads you through the install process and includes all download links needed.
Installation Overview
The complete setup of the PowerCLI/The VESI environment includes 3 steps:
- Installation of Windows PowerShell
- Installation of VMware PowerCLI
- Installation of The Virtualization EcoShell
It’s important that these steps are executed in this specific order. For a complete overview of download links and other interesting PowerShell/PowerCLI links, please visit my PowerCLI page.
Step 1 – Installation of Windows PowerShell
Windows XP, Windows Vista, Windows Server 2003 en Windows Server 2008
Windows 7 en Windows 2008 R2
- No installation required, because Windows PowerShell is already pre-installed with these Windows versions.
Step 2 – Installation of VMware PowerCLI
The installation of VMware PowerCLI is very straightforward, just follow the next, next saga.
http://www.vmware.com/download/download.do?downloadGroup=sdkwin40u1
For security reasons PowerShell doesn’t allow for the execution of scripts at all by default. This mode is the “Restricted” execution policy, in which PowerShell operates as an interactive shell only. In order to execute scripts we need to change this execution policy to “RemoteSigned” to allow for the execution of our own scripts and downloaded (or remote) scripts only if they are digitally signed by a trusted publisher.
- Start PowerCLI. Go to Start > Programs > VMware > VMware vSphere PowerCLI > VMware vSphere PowerCLI
- Set the execution policy to “RemoteSigned” by running the following in a PowerShell prompt
Set-ExecutionPolicy RemoteSigned
Step 3 – Installation of The Virtualization EcoShell
To install The Virtualization EcoShell just follow the next, next saga again.
http://thevesi.org/servlet/KbServlet/download/2352-102-4064/VESI.1.2.0.154.msi
Before you can run scripts inside the Virtualization EcoShell you have to add one or more managed hosts. This can be a vCenter server or just a standalone ESX server.
- Select Start>Programs>Virtualization EcoShell> Virtualization EcoShell
- Expand the VMware node
- Select Managed Hosts

- Select Add Connection
The “Add Connection” window is displayed.

- Click the selection icon

The “Select Values” window is displayed.

- Enter the IP address or the fully qualified domain name of a vCenter server or an ESX server.
- Click Add followed by OK
- Close the “Add Connection” window by clicking OK.
Using this procedure you can add multiple Managed Hosts. After adding Managed Hosts we need to connect to one or more before we can run a script.
PowerPack Installation
To use the full potential of the Virtualization EcoShell you have to install a PowerPack. The included VMware PowerPack already contains some powerful scripts, but there’s another mandatory PowerPack in your Virtualization EcoShell installation and that is the VMware Community PowerPack. This new PowerPack was announced on the PowerCLI/TheVESI DutchVMUG meeting by Alan Renouf and it’s the new version of his former Virtu-Al.Net PowerPack.
http://www.powergui.org/servlet/KbServlet/download/2551-102-4110/Virtu-Al.net%20Scripts.powerpack
- Select File>PowerPack Management
- Click Import
- Select the “Virtu-Al.net Scripts.Powerpack” file
- Click Open
The PowerPack and its version information is shown in the “PowerPack Management” window. From here the PowerPack can also be updated when the new version becomes available.
- Click Close to close the “PowerPack Management” window.
On the left side there’s now a new “VMware Community PowerPack” node, which can be expanded to explore all those great scripts inside. Just click on a script to execute it and have it reveal that valuable information from your virtual infrastructure.
Have Fun!