<?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: Get highest HW version supported by Cluster for Virtual Machine (Template) in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2921168#M107576</link>
    <description>&lt;P&gt;Thank you Luc, I think that is what I am going to be able to use to help out the operations team.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 18:21:52 GMT</pubDate>
    <dc:creator>sg-ascension</dc:creator>
    <dc:date>2022-07-28T18:21:52Z</dc:date>
    <item>
      <title>Get highest HW version supported by Cluster for Virtual Machine (Template)</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2920915#M107557</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have multiple vCenters that are at different versions some current, but others as low as 6.0. Within each of those vCenters there can be multiple DataCenters, with multiple Clusters. I am trying to find a way of getting the highest supported version of the VM Hardware Version that a cluster should be able to support.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Based on some other scripts (A BIG THANK YOU to LUC for giving help to the community),&amp;nbsp;I have the following to get the possible guest Families, guest Full Name's and ID's&lt;/P&gt;&lt;PRE&gt;$vcenters = (get-content -Path vcenters.txt)&lt;BR /&gt;foreach($vcenter in $vcenters) {&lt;BR /&gt;  write-host "vCenter is $vcenter"&lt;BR /&gt;  connect-viserver -Server $vcenter -Credential (get-credential)&lt;BR /&gt;  foreach($Datacenter in Get-Datacenter -Server $vcenter) {&lt;BR /&gt;    write-host "Datacenter is $Datacenter"&lt;BR /&gt;    foreach ($cluster in Get-Cluster -Location $DataCenter) {&lt;BR /&gt;      write-host "Cluster is $cluster"&lt;BR /&gt;      foreach($esxhost in (Get-VMHost -Location $cluster | Select-Object -First 1)){&lt;BR /&gt;        write-host "Host is $esxhost"&lt;BR /&gt;        $viewObjEnvBrowser = Get-View -Id (Get-View -Id $esxHost.ExtensionData.Parent).EnvironmentBrowser&lt;BR /&gt;        $vmxVer = ($viewObjEnvBrowser.QueryConfigOptionDescriptor() | Where-Object {$_.DefaultConfigOption}).Key&lt;BR /&gt;        $osDesc = $viewObjEnvBrowser.QueryConfigOption($vmxVer,$esxHost.ExtensionData.MoRef).GuestOSDescriptor&lt;BR /&gt;        $osDesc | Select-Object -Property Family, FullName, ID&lt;BR /&gt;      }&lt;BR /&gt;     }&lt;BR /&gt;    }&lt;BR /&gt;   }&lt;/PRE&gt;&lt;P&gt;The ultimate goal is for the data to be used to update templates that when they are being cloned from the content library thru PowerCli as a VM (then converted back to a Template) to have the correct VMX HW Version level, Guest version for the Cluster it is being deployed to. (Please note the VM's are sealed, so opening them todo highest might not be an option and Template names are as an example windows-2019-template or redhat-8-template, so a switch statement might work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 20:55:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2920915#M107557</guid>
      <dc:creator>sg-ascension</dc:creator>
      <dc:date>2022-07-27T20:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get highest HW version supported by Cluster for Virtual Machine (Template)</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2921003#M107563</link>
      <description>&lt;P&gt;Have a look at&amp;nbsp;&lt;A href="https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-get-a-list-of-all-supported-virtual-hardware-versions-via/m-p/2891310/highlight/true#M105095" target="_blank"&gt;Solved: Re: How to get a list of all supported virtual har... - VMware Technology Network VMTN&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With a big thank you to&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A id="link_49" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/196999" target="_self" name="&amp;amp;lpos=apps_scodevmw : 349" aria-label="View Profile of _BT_Black_V"&gt;&lt;SPAN class=""&gt;_BT_Black_V&lt;/SPAN&gt;&lt;/A&gt; who found that method.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 07:34:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2921003#M107563</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-07-28T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get highest HW version supported by Cluster for Virtual Machine (Template)</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2921168#M107576</link>
      <description>&lt;P&gt;Thank you Luc, I think that is what I am going to be able to use to help out the operations team.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 18:21:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-highest-HW-version-supported-by-Cluster-for-Virtual-Machine/m-p/2921168#M107576</guid>
      <dc:creator>sg-ascension</dc:creator>
      <dc:date>2022-07-28T18:21:52Z</dc:date>
    </item>
  </channel>
</rss>

