How to disconnect media on all VMs in SCVMM 2008 R2 using PowerShell

Share this:

Hello folks,

Today I had a requirement to disable configure all VMs of a SCVMM 2008 R2 to  No Media and I could’ve gone to each one of the VMs, ask Properties and set the VM to No media however I’m kind of lazy and for that let’s use PowerShell.

image

Open SCVMM PowerShell, and run the following cmdlet:

Get-VirtualDVDDrive –VMMServer <name> –all | Set-VirtualDVDDrive –NoMedia

That’s it, time for a coffee because PowerShell save the day again!

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

How to use maintenance mode in SCVMM 2012 In this Tutorial we are going over the process to configure maintenance mode of a Hyper-V host using SCVMM 2012 R2. Let’s define a scenario to show t...
Managing a Hyper-V Server Core installation using ... With all the benefits that Server Core bring such as performance, security and so on. But without the GUI, it's not easy to do the daily management an...
The components of the NIC Teaming Management UI The NIC Teaming management UI consists of 3 primary windows (tiles): The Servers tile The Teams tile The Adapters and Interfaces tile The Adapt...
Hyper-V Replica – Installation Process Hyper-V Replica is installed as part of the Hyper-V Role. Installation UI/Wizard To add the Hyper-V Role to a server installation, use the Add Role an...