Well, now that I have upgraded to vSphere 4 U1, I’m just doing an upgrade of the PowerCLI (VMware’s addition of some 200+ cmdlets together with access to the VMware SDK too). I’m an avid fan and believe in the powers of PowerCLI.
PowerCLI has been overhauled with a whole new raft of cmdlets which will go a long way in shortening my PS1 scripts. That said I don’t know when I’m going to get the time to replace my lengthy references to short cmdlets.
If you want to download and install the latest PowerCLI you will find it here:
I’ve been looking at the new cmdlets and trying to make a hit list of the ones I should look at first. Basically, I'm trying to figure out what my personal favorites/highlights will be by looking at the release notes:
- Managing the failover and load-balancing policies of
Set-NicTeamingPolicy. Previously, these settings were only accessible by navigating the complicated SDK environment
- Working with host storages and iSCSI HBA devices with
Set-VMHostStorage. Previously, these settings were only accessible by navigating the complicated SDK environment
- Upgrading hosts with
- Running BAT (Windows) and BASH (Linux) scripts with
Invoke-VMScript. I think these cmdlets may be very useful in the SRM environment.
- Uploading firmware packages with
- Extending, cloning, inflating, and reallocating virtual hard disks with
Set-HardDisk. I’m hoping these cmdlets will be able to tell me if my virtual disk is eagerzeroedthick, the format valid for VMware Fault Tolerance. The conversion process can take some time, so it will be helpful to know because it will factor into your maintenance windows.
This was first published in November 2009