This is useful if you are moving a license key from one host to another and need to free it up.
If you have an expired license or want to clean up evaluation licenses, you can remove a specific key from the host’s local inventory:
Set-VMHost -VMHost (Get-VMHost) -LicenseKey "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" # For hosts vcenter license key command line
Set-VMHost -VMHost $vmhost -LicenseKey '00000-00000-00000-00000-00000'
Alternatively, you can view the specific license assigned to the vCenter Server entity itself: powershell This is useful if you are moving a
/usr/lib/vmware-vmafd/bin/vmafd-cli get-serial-number --server-name localhost Use code with caution.
While vCenter manages the central pool, you often need to check or set licenses on individual hosts. This is typically done via the ESXi Shell or SSH. This is typically done via the ESXi Shell or SSH
Or specifically to find details about a certain license:
# Get the License Manager view $LicenseManager = Get-View LicenseManager # Add the key to the inventory pool $LicenseManager.AddLicense("XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", $null) # Assign the license to the vCenter Server asset $LicenseAssignmentManager = Get-View $LicenseManager.LicenseAssignmentManager $LicenseAssignmentManager.UpdateAssignedLicense("vcenter-instance-uuid", "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", "vCenter Server License") Use code with caution.
©2014-2026 WLP - Activation All Windows & Office - уже 12 лет помогаем Вам в активации!
* Контактная информация | Политика конфиденциальности