This is the built-in help made by Microsoft for the command 'Get-VMDvdDrive', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Gets the DVD drives attached to a virtual machine or snapshot.
Get-VMDvdDrive [-VMName] <String[]> [-ComputerName <String[]>] [-ControllerLocation <Int32>] [-ControllerNumber <Int32>] [<CommonParameters>]
Get-VMDvdDrive [-VM] <VirtualMachine[]> [-ControllerLocation <Int32>] [-ControllerNumber <Int32>] [<CommonParameters>]
Get-VMDvdDrive [-VMSnapshot] <VMSnapshot> [-ControllerLocation <Int32>] [-ControllerNumber <Int32>] [<CommonParameters>]
Get-VMDvdDrive [-VMDriveController] <VMDriveController[]> [-ControllerLocation <Int32>] [<CommonParameters>]
The Get-VMDvdDrive cmdlet gets the DVD drives attached to a virtual machine or snapshot.
This cmdlet has no ControllerType parameter, as the Get-VMHardDiskDrive cmdlet does, because virtual DVD drives can be attached only to the IDE controller.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=306849
<
Example 1
PS C:\>Get-VMDvdDrive –VMName Test
Gets the virtual DVD drives from virtual machine Test.
Example 2
PS C:\>Get-VM –Name Test | Get-VMDvdDrive –ControllerNumber 1
Gets the virtual DVD drives from IDE controller 1 of virtual machine Test.
Example 3
PS C:\>Get-VMIdeController –VMName TestVM –ControllerNumber 1 –ComputerName Development | Get-VMDvdDrive
Gets the virtual DVD drives from IDE controller 1 of virtual machine TestVM located on Hyper-V server Development.
Example 4
PS C:\>Get-VMSnapshot –VMName TestVM –Name 'Before applying updates' | Get-VMDvdDrive
Gets the virtual DVD drives from snapshot Before applying updates of virtual machine TestVM.