Travis Quinnelly bio photo

Travis Quinnelly

vTechify is my home to talk about all things virtualization. Here I share things learned in lab and production environments both for my documentation and others to stumble upon for reference.

Twitter Google+ LinkedIn Instagram Github Last.fm

Sometimes you need to quickly remove CDROMs from VMs to not violate vMotion or just because you’re lazy and forgot to unmount them when you were finished. Either way, those CDROMs should not be forever mounted to your VMs. This can only cause problems for you in the future.

So, if you need a quick PowerCLI one-liner to do that for you, look no further.

Get-VM <vmNames> | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$false