I was doing some maintenance and wanted to clean up some old NFS mounts we had on our ESXi server. Here’s a one-liner you can slap in PowerCLI once you are auth’d to vCenter. It will essentially list all VMs that have an ISO mounted. Pretty easy! I was then able to umount the CD/DVD ISO on the appropriate VMs so I could umount the NFS share clean.
Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }}
Aaron Schneider is the President of Helixstorm, bringing over 20 years of experience in the technology industry. Specializing in cloud computing, business continuity, virtualization, and business technology planning, he helps businesses integrate and adapt new technologies for seamless systems.