To add a new vCenter Server or ESXi license to the inventory:

$clusterName = "Prod-Cluster" $licenseKey = "AAAAA-BBBBB-CCCCC-DDDDD-EEEEE"

Means the license doesn't have enough free CPUs. Check usage:

$si = Get-View ServiceInstance $licAssignMgr = Get-View $si.Content.LicenseAssignmentManager $licAssignMgr.UpdateAssignedLicense($si.Content.About.InstanceUuid, "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", "vCenter License Name") Use code with caution. Copied to clipboard

[pms-recover-password]

[pms-account]

[pms-register]

[pms-login]