<?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: Powershell script to list VMs with attached iso in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921743#M107609</link>
    <description>&lt;P&gt;That worked.&amp;nbsp; Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 20:21:55 GMT</pubDate>
    <dc:creator>pasalott</dc:creator>
    <dc:date>2022-08-01T20:21:55Z</dc:date>
    <item>
      <title>Powershell script to list VMs with attached iso</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921738#M107607</link>
      <description>&lt;P&gt;I have a simple powershell script for listing VMs with attached iso's.&amp;nbsp; I would like to add a column for vCenter server but not exactly sure what cmdlet to use.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connect-VIServer [vcenter1],[vcenter2],[vcenter3],[vcenter4] -User [username] -Password [password]
Get-VM | Get-CDDrive | select @{N=”VM”;E=”Parent”},IsoPath | where {$_.IsoPath -ne $null} | Export-Csv -Path “C:\Temp\VMs_ISOs.csv” -NoTypeInformation -UseCulture&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:46:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921738#M107607</guid>
      <dc:creator>pasalott</dc:creator>
      <dc:date>2022-08-01T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to list VMs with attached iso</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921740#M107608</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-VM | Get-CDDrive |
Where-Object { $_.IsoPath -ne $null } |
Select-Object @{N = 'VM'; E = {$_.Parent.Name }}, IsoPath,
@{N = 'vCenter'; E = { ([uri]($_.Parent.ExtensionData.Client.ServiceUrl)).Host } }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:51:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921740#M107608</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-08-01T19:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to list VMs with attached iso</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921743#M107609</link>
      <description>&lt;P&gt;That worked.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 20:21:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Powershell-script-to-list-VMs-with-attached-iso/m-p/2921743#M107609</guid>
      <dc:creator>pasalott</dc:creator>
      <dc:date>2022-08-01T20:21:55Z</dc:date>
    </item>
  </channel>
</rss>

