Nothing too fancy here, just a quick and dirty way to find the current counts of all of my ESXi 4.1 (Build 260247) versus the remaining ESX hosts.
[Read more…] about ESX & ESXi counts: PowerCLI
HA restart priorities: PowerCLI
Each one of the vSphere clusters that I manage have an identical set of guests. I wrote this script as a handy way of setting/correcting any HA restart priorities per documented standards.
[Read more…] about HA restart priorities: PowerCLI
vSphere licensing via PowerCLI
After vSphere 4.1 hit the streets, my teammates and I decided to move from ESX 4.0 to ESXi 4.1 at all of our locations. With the exception of our primary datacenter, all of our locations were running vSphere 4.0 Standard licensing (read as: no vMotion). In order to quickly evacuate hosts to prepare them for the upgrade to 4.1, it occurred to me that we needed an easier way to set the licensing on those hosts. Since there are no PowerCLI cmdlets at this point that deal directly with licensing, I had to rely on the vSphere SDK to get the job done. For ease of use (and to look nicer), I created functions in that familiar PowerShell verb-noun style.