Query all VMs with mounted ISO files

Prerequisites

  • installed and configured PowerCLI

  • existing connection to a vCenter

Command:

Get-VM | Get-CDDrive | select @{N="VM";E="Parent"},IsoPath | where {$_.IsoPath -ne $null}

Output:

VM              IsoPath                                                                               
--              -------                                                                               
VM Name         [Datastore Name] 20ca3867-1c6e-0bb8-7180-063401c29880/Name-of-the-Image.iso

Last updated