<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: add Licences features details to report in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978099#M112708</link>
    <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/256147"&gt;@LucD&lt;/a&gt;it's working thanks &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;Just a question, do you know a way to have the feature in single line?&lt;/P&gt;&lt;P&gt;Like this :&lt;BR /&gt;&lt;BR /&gt;Unlimited virtual SMP&lt;BR /&gt;H.264 for Remote Console Connections&lt;BR /&gt;vCenter agent for VMware host&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 12:41:41 GMT</pubDate>
    <dc:creator>lElOUCHE_79</dc:creator>
    <dc:date>2023-07-19T12:41:41Z</dc:date>
    <item>
      <title>add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978087#M112704</link>
      <description>&lt;P&gt;Hi folks &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;I find the below script on the internet and I would need assistance to add licenses features details is that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;foreach ($licenseManager in (Get-View LicenseManager)) #-Server $vCenter.Name
{
    $vCenterName = ([System.uri]$licenseManager.Client.ServiceUrl).Host
    #($licenseManager.Client.ServiceUrl -split '/')[2]
    foreach ($license in $licenseManager.Licenses)
    {
        $licenseProp = $license.Properties
        $licenseExpiryInfo = $licenseProp | Where-Object {$_.Key -eq 'expirationDate'} | Select-Object -ExpandProperty Value
        if ($license.Name -eq 'Product Evaluation')
        {
            $expirationDate = 'Evaluation'
        } #if ($license.Name -eq 'Product Evaluation')
        elseif ($null -eq $licenseExpiryInfo)
        {
            $expirationDate = 'Never'
        } #elseif ($null -eq $licenseExpiryInfo)
        else
        {
            $expirationDate = $licenseExpiryInfo
        } #else #if ($license.Name -eq 'Product Evaluation')
    
        if ($license.Total -eq 0)
        {
            $totalLicenses = 'Unlimited'
        } #if ($license.Total -eq 0)
        else 
        {
            $totalLicenses = $license.Total
        } #else #if ($license.Total -eq 0)
    
        $licenseObj = New-Object psobject
        $licenseObj | Add-Member -Name Name -MemberType NoteProperty -Value $license.Name
        $licenseObj | Add-Member -Name LicenseKey -MemberType NoteProperty -Value $license.LicenseKey
        $licenseObj | Add-Member -Name ExpirationDate -MemberType NoteProperty -Value $expirationDate
        $licenseObj | Add-Member -Name ProductName -MemberType NoteProperty -Value ($licenseProp | Where-Object {$_.Key -eq 'ProductName'} | Select-Object -ExpandProperty Value)
        $licenseObj | Add-Member -Name ProductVersion -MemberType NoteProperty -Value ($licenseProp | Where-Object {$_.Key -eq 'ProductVersion'} | Select-Object -ExpandProperty Value)
        $licenseObj | Add-Member -Name EditionKey -MemberType NoteProperty -Value $license.EditionKey
        $licenseObj | Add-Member -Name Total -MemberType NoteProperty -Value $totalLicenses
        $licenseObj | Add-Member -Name Used -MemberType NoteProperty -Value $license.Used
        $licenseObj | Add-Member -Name CostUnit -MemberType NoteProperty -Value $license.CostUnit
        $licenseObj | Add-Member -Name Labels -MemberType NoteProperty -Value $license.Labels
        $licenseObj | Add-Member -Name vCenter -MemberType NoteProperty -Value $vCenterName
        $licenseObj
    } #foreach ($license in $licenseManager.Licenses)
} #foreach ($licenseManager in (Get-View LicenseManager)) #-Server $vCenter.Name&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:22:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978087#M112704</guid>
      <dc:creator>lElOUCHE_79</dc:creator>
      <dc:date>2023-07-19T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978090#M112705</link>
      <description>&lt;P&gt;Add the following line&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;		$licenseObj | Add-Member -Name Features -MemberType NoteProperty -Value (($license.Properties.Where{ $_.Key -eq 'feature' }).Value.Value -join '|')
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;PS: it is always nice when you refer to a script to include a link&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:53:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978090#M112705</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-07-19T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978092#M112706</link>
      <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/256147"&gt;@LucD&lt;/a&gt;Sure Sir &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@69B3F769431606C22F8503450B1B2022/emoticons/1f60a.png" alt=":smiling_face_with_smiling_eyes:" title=":smiling_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://vcloud-lab.com/entries/powercli/powercli-get-vcenter-licenses-information" target="_blank"&gt;http://vcloud-lab.com/entries/powercli/powercli-get-vcenter-licenses-information&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:56:04 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978092#M112706</guid>
      <dc:creator>lElOUCHE_79</dc:creator>
      <dc:date>2023-07-19T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978099#M112708</link>
      <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/256147"&gt;@LucD&lt;/a&gt;it's working thanks &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;Just a question, do you know a way to have the feature in single line?&lt;/P&gt;&lt;P&gt;Like this :&lt;BR /&gt;&lt;BR /&gt;Unlimited virtual SMP&lt;BR /&gt;H.264 for Remote Console Connections&lt;BR /&gt;vCenter agent for VMware host&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:41:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978099#M112708</guid>
      <dc:creator>lElOUCHE_79</dc:creator>
      <dc:date>2023-07-19T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978103#M112709</link>
      <description>&lt;P&gt;Join with a NL character&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;		$licenseObj | Add-Member -Name Features -MemberType NoteProperty -Value (($license.Properties.Where{ $_.Key -eq 'feature' }).Value.Value -join "`n")
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:56:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978103#M112709</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-07-19T12:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: add Licences features details to report</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978651#M112738</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/256147"&gt;@LucD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 20:44:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/add-Licences-features-details-to-report/m-p/2978651#M112738</guid>
      <dc:creator>lElOUCHE_79</dc:creator>
      <dc:date>2023-07-22T20:44:27Z</dc:date>
    </item>
  </channel>
</rss>

