I need to find out all vms in a datastore to what iso they are mapped to
get-datastore lunname | Get-VM | Get-CDDrive | select @{N="VM";E="Parent"
},IsoPath | where {$_.IsoPath -eq "[lunname] ISO/isoname.iso"} | ft -auto
then I need to unmount the iso, move the folder and remount these iso to the same vms
whats best way to approach this?
I can dismount the the iso in one line, move the folder
but I will need to keep track of what vms needs to remount the iso to the new datastore path