Updating the VMware vCenter License Key using PowerCLI

Out of the blue this week, I had a query from a colleague about being able to update the vCenter License key programmatically via PowerShell/PowerCLI. This is something I have done before so luckily I had a script. The main license update component is here: $LicenseManager = get-view($vCenter.ExtensionData.content.LicenseManager) $LicenseManager.AddLicense($vCenter6License,$null) $LicenseAssignmentManager = get-view($LicenseManager.licenseAssignmentManager) $LicenseAssignmentManager.UpdateAssignedLicense($vCenter.InstanceUuid,$vCenter6License,$Null) Note: This... Continue Reading →

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑