Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell to Eject DVDs from Group of Virtual Machines

$
0
0

Summary: Use Windows PowerShell to eject the DVDs from a group of virtual machines.

Hey, Scripting Guy! Question How can I eject any mounted DVDs from a group of virtual machines that are running Hyper-V in Windows Server 2012?

Hey, Scripting Guy! Answer Use the Set-VMDvdDrive cmdlet and set the path to $null:

$name = "Client1","Server1","Server2"

$name | Foreach {Set-VMDvdDrive -VMName $_ -Path $null}


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>