Yes, you can do
Get-VM|Get-CDDrive|where{$_.IsoPath} |
Set-CDDrive-NoMedia-Confirm:$False
To find the VMs that are on local storage, you could do
Get-VM|where{Get-Datastore-RelatedObject$_|where {$_.ExtensionData.Info.Vmfs.IsLocal}} |
SelectName
Yes, you can do
Get-VM|Get-CDDrive|where{$_.IsoPath} |
Set-CDDrive-NoMedia-Confirm:$False
To find the VMs that are on local storage, you could do
Get-VM|where{Get-Datastore-RelatedObject$_|where {$_.ExtensionData.Info.Vmfs.IsLocal}} |
SelectName