I was looking for instant one-liner PowerCLI script to get licensing report of ESXi servers and also wanted one-liner commands to assign / remove licenses on ESXi servers, Below scripts help to do the tasks.
#Connect ESXi Server
$vmHost = Get-VMHost -Name ironman.vcloud-lab.com
#Assign / …