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

PowerTip: Use PowerShell to Find Virtual Machine DVD Info

$
0
0

Summary: Use Windows PowerShell to find Hyper-V DVD information in Windows 8 or Windows Server 2012.

 
Hey, Scripting Guy! Question How can I use Windows PowerShell in Windows 8 or Windows Server 2012 to find Hyper-V virtual machine DVD disk information?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet and pipe the output to the Get-VMDvdDrive cmdlet:

PS C:\> get-vm | Get-VMDvdDrive

VMName ControllerType ControllerNumber ControllerLocation DvdMediaType Path

------ -------------- ---------------- ------------------ ------------ ----

c1 IDE 1 0 ISO C:\WINDOWS...

C2 IDE 1 0 None

DC1 IDE 1 0 None

sql1 IDE 1 0 None

 


Viewing all articles
Browse latest Browse all 34890

Trending Articles



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