Handy Powershell commands – Hyper-V

Posted: November 19, 2013 in HyperV, Information, Powershell, Work in Progress

A collection of Powershell commands that I’ve come up with. Will add over time

Hyper-V

Display all attached Virtual DVD images

 Get-VMDvdDrive -vmname * |  where {$_.Path -ne $null} | format-table vmname, path -auto

 

Detach *all* virtual DVD images

 Get-VMDvdDrive -vmname * |  where {$_.Path -ne $null} | set-vmdvddrive -Path $null

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s