PowerShell Logo Small

Remove-VMDvdDrive



This is the built-in help made by Microsoft for the command 'Remove-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.

SYNOPSIS

Deletes a DVD drive from a virtual machine.

SYNTAX


Remove-VMDvdDrive [-VMName] <String> [-ControllerNumber] <Int32> [-ControllerLocation] <Int32> [-ComputerName <String[]>] [-Passthru] [<CommonParameters>]
Remove-VMDvdDrive [-VMDvdDrive] <DvdDrive[]> [-Passthru] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-VMDvdDrive cmdlet deletes a DVD drive from a virtual machine.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306903

REMARKS

<

Examples


Example 1

PS C:\>Remove-VMDvdDrive -VMName TestVM -ControllerNumber 1 -ControllerLocation 0



Removes the virtual DVD drive at IDE 1,0 on virtual machine TestVM.




Example 2

PS C:\>Get-VMDvdDrive -VMName TestVM -ControllerNumber 1 | Remove-VMDvdDrive



Removes all virtual DVD drives on IDE controller 1 of virtual machine TestVM.