Import-Module -Name VMware.PowerCLI
To add a license key to the vCenter license manager without immediately assigning it: powershell vcenter license key command line
$vCenter = Connect-VIServer -Server "://example.com" $licAssMgr = Get-View $licMgr.LicenseAssignmentManager $licAssMgr.UpdateAssignedLicense($vCenter.InstanceUuid, $licKey, $vCenter.Name) Use code with caution. Copied to clipboard Import-Module -Name VMware