Remove-CDDrive Command | Vmware PowerCLI Reference

Remove-CDDrive

This cmdlet removes virtual CD drives from their locations.

Syntax

Remove-CDDrive
-CD < CDDrive[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CD CDDrive[] named
  • pipeline
Specifies the virtual CD drives you want to remove.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

$cd = Get-CDDrive -VM $vm

Remove-CDDrive -CD $cd

Removes all CD drives for the specified virtual machines and templates.

Related Commands

CDDrive

This cmdlet retrieves virtual CD drives.

This cmdlet creates a new virtual CD drive.

This cmdlet removes virtual CD drives from their locations.

This cmdlet modifies the configuration of a virtual CD drive.