PowerTip: Use PowerShell to Find Virtual Machine DVD Info

ScriptingGuy1

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  

0 comments

Discussion is closed.

Feedback usabilla icon