<?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: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716509#M94305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afaik this has nothing to do with PowerCLI, it's the way vCenter gets this information, and how and where some HW vendors make this information available.&lt;/P&gt;&lt;P&gt;With the CIM interface you can dump all the available information, and then find out where exactly the tag is hiding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See what this returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5f9ea0;"&gt;import-module&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CimCmdlets&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esxiHostname&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"MyESXiServer"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"root"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCACheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCNCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipRevocationCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Encoding&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Utf8&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-UseSsl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Authentication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Basic&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Credential&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ComputerName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esxiHostname&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-port&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;443&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-CimInstance&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ClassName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CIM_Chassis&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You will be prompted for the ESXi root password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On some of our older IBM HW I get the following where the asset tag is expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="assettag.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/47894i6312159B112EC14B/image-size/large?v=v2&amp;amp;px=999" role="button" title="assettag.png" alt="assettag.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the information is there, just in another property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we already mentioned during our VMworld session, explore the CIM API.&lt;/P&gt;&lt;P&gt;There is a wealth of information in there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 13:42:44 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2013-10-24T13:42:44Z</dc:date>
    <item>
      <title>PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716503#M94299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hoping someone, anyone, will be able to help me figure out what I may be doing wrong and how to use PowerCLI to retrieve &lt;EM&gt;valid&lt;/EM&gt; ESXi host &lt;STRONG&gt;Asset Tag &lt;/STRONG&gt;information that is displayed on the &lt;STRONG&gt;Hardware Status&lt;/STRONG&gt; &lt;EM&gt;Tab&lt;/EM&gt; in vCenter. I have absolutely no issues retrieving Host Serial Numbers (sometimes referred to as Service Tags), Manufacture, Model, Part, Build Numbers, etc, but can't seem to be able to poll current &lt;STRONG&gt;Asset Tag&lt;/STRONG&gt; Numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of the following attributes or property values identified below returned the information required and which currently exists (See image below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hardware.SystemInfo.OtherIdentifyingInfo[0].IdentifierValue&lt;/P&gt;&lt;P&gt;Hardware.SystemInfo.OtherIdentifyingInfo[1].IdentifierValue&lt;/P&gt;&lt;P&gt;Hardware.SystemInfo.OtherIdentifyingInfo[2].IdentifierValue&lt;/P&gt;&lt;P&gt;Hardware.SystemInfo.OtherIdentifyingInfo | where {$_.IdentifierType.Key -eq "assettag"}).identifierValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="vCenter Server Hardware Status Tab - Asset Tag Info.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/47658iCB8F0590EE446F00/image-size/large?v=v2&amp;amp;px=999" role="button" title="vCenter Server Hardware Status Tab - Asset Tag Info.png" alt="vCenter Server Hardware Status Tab - Asset Tag Info.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script I'm currently running. I'm using PowerCLI Version 5.1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$VIServer = "&lt;EM&gt;Enter vCenter Server Name&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Adding PowerCLI core snapin&lt;BR /&gt;if (!(get-pssnapin -name VMware.VimAutomation.Core -erroraction silentlycontinue)) {&lt;BR /&gt; add-pssnapin VMware.VimAutomation.Core&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Connect-VIServer $VIServer&lt;/P&gt;&lt;P&gt;$HostReport = @()&lt;/P&gt;&lt;P&gt;$VMH = Get-VMHost | Get-View |%{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report = "" | select Hostname, Version, Build, Manufacture, Model, Serial, Asset Tag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Hostname = $_.Name &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.version =$_.Config.Product.Version &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Build =$_.Config.Product.Build &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.manufacture =$_.Hardware.SystemInfo.Vendor &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Model =$_.Hardware.SystemInfo.Model &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Serial =$_.Hardware.SystemInfo.OtherIdentifyingInfo[0].IdentifierValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Asset Tag =????????????????????????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $HostReport += $Report&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;} &lt;/P&gt;&lt;P&gt;$HostReport | Export-Csv ".\HostReport.csv" –NoTypeInformation&lt;/P&gt;&lt;P&gt;Disconnect-VIServer -Confirm:$false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx. Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 22:41:59 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716503#M94299</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-11T22:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716504#M94300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue i found is that 'OtherIdentifyingInfo' is a collection of objects (i suppose)... so you need to use -ExpandProperty on a select statement, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$helper = $_.hardware.systeminfo | Select -ExpandProperty OtherIdentifyingInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$helper variable will get all the objects associated which OtherIdentifyingInfo, so you need a foreach to find the attribute needed. I think you should find what you need on 'IdentifierValue' and 'IdentifierType.Label' Attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see if this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:16:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716504#M94300</guid>
      <dc:creator>rtunisi</dc:creator>
      <dc:date>2013-10-14T19:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716505#M94301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding..!! Very helpful answer but unfortunately the output did not reveal anything further than what had been made availaible using the specific Identifier Values, i.e., Hardware.SystemInfo.OtherIdentifyingInfo[0], [1], or [2]...&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@5FC79C0032E597F6EC0C3A71500D7708/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I do however want to thank you for providing me with enough info to allow me to list all the Properties associated with a given Object!! I'm really somewhat of a novice when it comes to PowerCLI and have so far gotten by using scripts developed by others. I honestly did not know how to traverse vim assemblies to expand upon their individual Properties. I realize this is probably basic stuff so chalk this up to pure laziness perhaps or just me cutting corners as per usual.&amp;nbsp; :-o)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, another method which allowed me to parse an Object’s relevant Properties was by using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;{$_.hardware.systeminfo.OtherIdentifyingInfo | Select *}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Now back to the issue at hand. It looks as though the mystery still persists.&amp;nbsp; I quickly validated almost all of the objects within Summary, Hardware, Config and Config Manager vim assemblies and &lt;STRONG&gt;still&lt;/STRONG&gt; &lt;STRONG&gt;can’t find&lt;/STRONG&gt; the information I need using PowerCLI. Why is this?? Particularly since the Asset Tag is a valid field in vCenter with legitimate data??? Is there a limitation as to what PowerCLI can extrapolate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx. Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 20:10:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716505#M94301</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-15T20:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716506#M94302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyone out there able to figure this one out??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx. Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 14:48:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716506#M94302</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-17T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716507#M94303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not having much success with this post. Can anyone advise as to what my next options might be, if any, to solving this issue? Can I get formal Support from VMware on matters pertaining to this management framework?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx. Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 17:50:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716507#M94303</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-23T17:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716508#M94304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Dell and I used to be able to get the serial using Powercli on 5.0, but I just recently upgraded to 5.1 U1 and I have noticed the &lt;SPAN style="color: #000000;"&gt;array is blank now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #8b4513; font-size: 10pt; font-family: Courier New;"&gt;Hardware&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513; font-size: 10pt; font-family: Courier New;"&gt;SystemInfo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513; font-size: 10pt; font-family: Courier New;"&gt;OtherIdentifyingInfo &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Courier New; font-size: 10pt;"&gt;Not sure why this info is not populating in there.&amp;nbsp; If we don't get a response I'll hit up&amp;nbsp; Alan Renouf on twitter as I think he has a pipeline into the powercli devs and maybe he can shed some light on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:24:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716508#M94304</guid>
      <dc:creator>markdjones82</dc:creator>
      <dc:date>2013-10-24T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716509#M94305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afaik this has nothing to do with PowerCLI, it's the way vCenter gets this information, and how and where some HW vendors make this information available.&lt;/P&gt;&lt;P&gt;With the CIM interface you can dump all the available information, and then find out where exactly the tag is hiding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See what this returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5f9ea0;"&gt;import-module&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CimCmdlets&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esxiHostname&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"MyESXiServer"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"root"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCACheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCNCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipRevocationCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Encoding&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Utf8&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-UseSsl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Authentication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Basic&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Credential&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ComputerName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$esxiHostname&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-port&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;443&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-CimInstance&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ClassName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CIM_Chassis&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You will be prompted for the ESXi root password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On some of our older IBM HW I get the following where the asset tag is expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="assettag.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/47894i6312159B112EC14B/image-size/large?v=v2&amp;amp;px=999" role="button" title="assettag.png" alt="assettag.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the information is there, just in another property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we already mentioned during our VMworld session, explore the CIM API.&lt;/P&gt;&lt;P&gt;There is a wealth of information in there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:42:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716509#M94305</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-24T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716510#M94306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah that makes sense, now if I can just find the time to read up on all that stuff :smileysilly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Luc.&amp;nbsp; I've always wondered is there a good powershell 3.0 cmdlet reference page like we have with Powercli where I can look up all the cmdlets that are part of powershell 3.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:53:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716510#M94306</guid>
      <dc:creator>markdjones82</dc:creator>
      <dc:date>2013-10-24T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716511#M94307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find all the core cmdlets &lt;A href="http://technet.microsoft.com/en-us/library/hh847741"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;And then there are the numerous modules, who most of the time also publish a reference page&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 15:46:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716511#M94307</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-24T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716512#M94308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luc,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Would there be anyway to pass the password to the basic credential?&amp;nbsp; I didnt' see a switch for password.&amp;nbsp; I am trying to get around the password prompt if possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 20:37:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716512#M94308</guid>
      <dc:creator>markdjones82</dc:creator>
      <dc:date>2013-10-24T20:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716513#M94309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can create a PSCredential object that you can pass on the Credential parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;$username&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"account"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$pswd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"password"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$pswdSecure&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;ConvertTo-SecureString&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-String&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$pswd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-AsPlainText&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Force&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$cred&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-Object&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-TypeName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;System.Management.Automation.PSCredential&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ArgumentList&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$username&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$pswdSecure&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 20:50:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716513#M94309</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-24T20:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716514#M94310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luc;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much for responding. &lt;STRONG&gt;This is excellent&lt;/STRONG&gt;!! Once I upgraded my PowerShell foundation to v 3.0 on my Windows 7 workstation I was able to gather the info I was looking for. Sure enough the data was embedded at the CIM layer. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there was a way to automate populating the "$esxiHostname" variable in the script by perhaps piping in ESXi Server Names listed within and from each vCenter or maybe by reading a manual list??&amp;nbsp; Naturally, we would prefer the automated method. Thx in advance.&amp;nbsp; Below is an sample script I was able to develop using your source info: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import-module CimCmdlets&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$HostReport = @()&lt;/P&gt;&lt;P&gt;$esxiHostname = "MyESXiHost1", "MyESXiHost2"&lt;BR /&gt;$HostUsername = "root"&lt;BR /&gt;$CIOpt = New-CimSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -Encoding Utf8 -UseSsl&lt;BR /&gt;$Session = New-CimSession -Authentication Basic -Credential $HostUsername -ComputerName $esxiHostname -port 443 -SessionOption $CIOpt &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Get-CimInstance -CimSession $Session -ClassName CIM_Chassis | % {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report = ""| Select HostName, Model, SerialNumber, AssetTagInfo&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.HostName = $_.PSComputerName &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.Model = $_.Model&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.SerialNumber = $_.SerialNumber &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Report.AssetTagInfo = $_.OtherIdentifyingInfo &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $HostReport += $Report&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;$HostReport | Sort-object -Property HostName | Export-Csv ".\HostHardwareReport.csv" –NoTypeInformation&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Much appreciated. Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 15:13:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716514#M94310</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-25T15:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716515#M94311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean like this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5f9ea0;"&gt;import-module&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CimCmdlets&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"root"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostReport&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;()&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCACheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipCNCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SkipRevocationCheck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Encoding&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Utf8&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-UseSsl&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-VMHost&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;New-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Authentication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Basic&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Credential&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostUsername&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ComputerName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-port&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;443&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-SessionOption&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$CIOpt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-CimInstance&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-CimSession&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-ClassName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CIM_Chassis&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;HostName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Model&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;SerialNumber&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;AssetTagInfo&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;HostName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;PSComputerName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Model&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Model&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;SerialNumber&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;SerialNumber&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;AssetTagInfo&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;OtherIdentifyingInfo&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostReport&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$Report&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$HostReport&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Sort-object&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;-Property&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;HostName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Export-Csv&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; text-decoration: underline;"&gt;.\HostHardwareReport.csv&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;–&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;NoTypeInformation&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:09:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716515#M94311</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-25T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Help Needed With Retrieving ESXi Host Asset Tag Info</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716516#M94312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that was pretty easy.. :smileylaugh: As I indicated above, I'm somewhat of a novice.. :smileyblush:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thank you kindly, Luc..!!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:39:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Help-Needed-With-Retrieving-ESXi-Host-Asset-Tag-Info/m-p/2716516#M94312</guid>
      <dc:creator>RonPSSC</dc:creator>
      <dc:date>2013-10-25T19:39:13Z</dc:date>
    </item>
  </channel>
</rss>

