http://vcloud-lab.com/entries/powercli/powercli-get-vcenter-licenses-informationComments on post: Powercli Get vCenter licenses informationVivitiCMS2024-03-29T04:50:01+05:30Virtual Geektag:vcloud-lab.com,2021-04-09:/entries/111647#comment_159508Comment by Josh2021-04-09T18:03:26+05:302021-04-09T18:03:26+05:30How can I add a column to the report that shows the name we gave the license(s)?
Thankstag:vcloud-lab.com,2022-07-01:/entries/111647#comment_163609Comment by Bjørn-Ove2022-07-01T02:14:32+05:302022-07-01T02:14:32+05:30
Thanks for providing this script!
I wanted to export this to csv and excel. Added a variable for an Array, and a few lines to accomplish my needs.
Added:
@ line 47: $LicenseArray = @()
@line 91: $LicenseArray += $licenseobj ## Adding licenseobj to an Array
@the-very-end (in my script @line 98): $LicenseArray | export-csv -useculture -notypeinformation c:\Users\myusername\Documents\Licenses\licenses_from_this_vcenter.txt