<?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: List all VM's in a virtual centre running windows XP OS in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757838#M55631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should help in exactly what you want.. Just you need to work on CSV file alignment little-bit.. &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;A href="http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html" title="http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html"&gt;http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the to the command section of this article (&lt;STRONG&gt;Step-3&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13px; background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; text-decoration: underline;"&gt;Get-VM | select Name, Guest | Export-CSV &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 13px; background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;D:\test.csv&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should do for you. I am not sure if Datacentre column can be fit in the report.. will try and let you know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 11:24:22 GMT</pubDate>
    <dc:creator>iamamit</dc:creator>
    <dc:date>2017-02-24T11:24:22Z</dc:date>
    <item>
      <title>List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757837#M55630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get a script which will list all VM's in a virtual centre which is running windows XP OS.&amp;nbsp; And also which vmware datacentre they are in.&lt;/P&gt;&lt;P&gt;That would be great to have in a csv format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 10:50:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757837#M55630</guid>
      <dc:creator>Guv</dc:creator>
      <dc:date>2017-02-24T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757838#M55631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should help in exactly what you want.. Just you need to work on CSV file alignment little-bit.. &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;A href="http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html" title="http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html"&gt;http://www.techiessphere.com/2017/02/managing-guest-os-software-or-database-license-inventory-using-vSphere.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the to the command section of this article (&lt;STRONG&gt;Step-3&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13px; background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; text-decoration: underline;"&gt;Get-VM | select Name, Guest | Export-CSV &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 13px; background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;D:\test.csv&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should do for you. I am not sure if Datacentre column can be fit in the report.. will try and let you know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 11:24:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757838#M55631</guid>
      <dc:creator>iamamit</dc:creator>
      <dc:date>2017-02-24T11:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757839#M55632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so here is the command you can use to get the VM Name, Guest OS Details and Datacenter Details...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get-VM | Select Name, Guest, @{N="Datacenter";E={Get-Datacenter -VM $_}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To export the result in CSV, you can use it like below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get-VM | Select Name, Guest, @{N="Datacenter";E={Get-Datacenter -VM $_}} | Export-Csv D:\Test.CSV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 11:38:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757839#M55632</guid>
      <dc:creator>iamamit</dc:creator>
      <dc:date>2017-02-24T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757840#M55633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway we can list out only the VM's with windows XP OS, as the above scripts lists out all VM's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 15:47:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757840#M55633</guid>
      <dc:creator>Guv</dc:creator>
      <dc:date>2017-02-27T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757841#M55634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Get-VM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;where&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$_&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Guest&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;OSFullName &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;-match&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;"XP"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;Select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2;"&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;@{N&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;&lt;SPAN&gt;'GuestOS'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;;E&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$_&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Guest&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;OSFullName}} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:20:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757841#M55634</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-02-27T17:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: List all VM's in a virtual centre running windows XP OS</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757842#M55635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;You may try below one, should work for filtering only "Windows Xp" guest VMs.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;--------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$vms = Get-VM &lt;/P&gt;&lt;P&gt;Foreach ($vm in $vms){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((Get-View $vm).Guest.GuestFullName -match "windows xp"){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host $vm.Name, " =&amp;gt; " , (Get-View $vm).Guest.GuestFullName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;--------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;You can check keeping "Xp" instead of "Windows Xp", it should also work..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Amit&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:32:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/List-all-VM-s-in-a-virtual-centre-running-windows-XP-OS/m-p/1757842#M55635</guid>
      <dc:creator>iamamit</dc:creator>
      <dc:date>2017-02-27T17:32:03Z</dc:date>
    </item>
  </channel>
</rss>

