Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: Retrieve vcenter license key

$
0
0

Thanks. How can I make it displaying the vCenter name?

 

foreach ($vm in $vmlist) {
Connect-VIServer -Server $vm
$viewLicMgr = Get-View $global:DefaultVIServer.ExtensionData.Content.LicenseManager
$report += $viewLicMgr.Licenses
Disconnect-VIserver $vm -Confirm:$false
}

$report | Export-Csv D:\Scripts\License\licenses.csv -NoTypeInformation -UseCulture

 

I would like the report to display the vCenter name so I know which vCenter the license belong to....


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>