[VMWare] List all VMs with an ISO mounted and dismount/disconnect them using PowerCli

I’ll start by assuming that you already know how to install PowerCli.

If not, you can take a look on my older post [ here ]

In this post, I’ll explain how to list all the VMs in your Vcenter that have a mounted ISO image and how to dismount/disconnect this ISO using PowerCli.

So, let’s connect to the VCenter:

Now let’s list all the VMs that have an ISO image attached:

You’ll get a listing similar to the one below:

Name ISO file
—- ——–

EZCACTI [datastore1] ISOs/CactiEZ-v0.7.iso

OK, let’s dismount and disconnect this ISO from the “EZCACTI” VM:

You can also use:

if you do not wish to confirm the action.

You can also dismount/disconnect all ISO files attached to all the machines:

 

Enjoy !