Hello,
-
You can use the LicenseManager object for the vCenter to which you last connected in your PowerCLI session, and then display the licenses that it knows of, like:
## get the license manager View object
$viewLicMgr=Get-View$global:DefaultVIServer.ExtensionData.Content.LicenseManager
## display the licenses
$viewLicMgr.Licenses
How does that do for you?