ESXi 6.5 File In Use

DeaconFrost

[H]F Junkie
Joined
Sep 6, 2007
Messages
11,582
I'm trying to move our .isos to a new datastore for organizational sake. Some won't move, likely because they are still inserted into various VMs. Aside from scrolling through the list of servers and checking the settings, is there a way or a trick to see what VMs have a specific .iso file in use? We have almost 500 VMs, so I'm hoping to find an easier, non-manual way.
 
Are you familiar with PowerCLI? This is a pretty easy one liner task:

Get-VM | Get-CDDrive | Where { $_.IsoPath } | Set-CDDrive -NoMedia -Confirm:$false

Aside from that there are other scripting options as well, this is the most simple version though.
 
Back
Top