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

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...
How to create a manual copy of the DPM database DPM is a great product to protect Microsoft workloads, and now that we can use Azure as long-term repository, to protect the vast majority of workload...
Installing Red Hat Enterprise Linux 7.3 We are going over the process to install Red Hat Enterprise Linux. We created a new VM in our Hyper-V environment and we will install the Red Hat Ente...
System Center 2012 R2 Infrastructure overview The notion of infrastructure provisioning is about enabling enterprises and service providers to provision physical, virtual, and cloud infrastructure...