I'm trying to create a list of VMs whish a specific ISO attached. However when I run the following, it does not tell me the name of the VM. I need the VM name to verify with the VM owner that I can remove the ISO as they may using the ISO.
Here is a snippet of the results:
Message was edited by: halr9000: used code and noformat tags to pretty it up
{noformat}PS C:\Program Files (x86)\VMware\Infrastructure\VIToolkitForWindows> $vms | get-cddrive | where {$_.ISOPath -like "*2.0.8.iso*"}{noformat}
Here is a snippet of the results:
{noformat}IsoPath : [TestSAN-DC1-Vol1] ISOs/SMG_WinPE20_x86_v2.0.8.iso
HostDevice :
RemoteDevice :
ConnectionState : VMware.VimAutomation.Client20.ConnectInfoImpl
Id : VirtualMachine-vm-1148/3000
Name : CD/DVD Drive 1{noformat}
Message was edited by: halr9000: used code and noformat tags to pretty it up
Tags:
powershell,
cdrom,
iso,
vi_toolkit_windows,
get-cddrive