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.