Dismount all mounted ISO files on a cluster

Prerequisites

  • installed and configured PowerCLI

  • existing connection to a vCenter

Command:

Get-VM | Get-CDDrive | where {$_.IsoPath -ne $null} | Set-CDDrive -NoMedia -confirm:$false

Output:

ISOPath         Hostdevice       
RemoteDevice
                                                                                      
-------         ----------                                                                               
------------ 
   

Last updated