< Back
Get-CDDrive
Post
NAME Get-CDDrive
SYNOPSIS
This cmdlet retrieves virtual CD drives.
SYNTAX
Get-CDDrive [[-VM] <VirtualMachine[]>] [[-Template] <Template[]>] [[-Snapshot] <Snapshot[]>] [-Id <String[]>]
[-Name <String[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet returns a set of virtual CD drives that belong to the virtual machines, templates, and snapshots
specified by the VirtualMachine, Template, and Snapshot parameters. At least one of these parameters must be
provided. To specify a server different from the default one, use the Server parameter.
PARAMETERS
-Id <String[]>
Specifies the IDs of the CD drives you want to retrieve.
Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that
matches exactly one of the string values in that list.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Name <String[]>
Specifies the names of the CD drives you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Snapshot <Snapshot[]>
Specifies the snapshots from which you want to retrieve virtual CD drives.
Required? false
Position? 3
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Template <Template[]>
Specifies the virtual machine templates from which you want to retrieve virtual CD drives.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-VM <VirtualMachine[]>
Specifies the virtual machines from which you want to retrieve virtual CD drives.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more CDDrive objects
NOTES
-------------------------- Example 1 --------------------------
Get-VM -Name VM | Get-CDDrive
Connects to a vSphere server and retrieves the CD drive of the virtual machine named VM.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... Drive.html
New-CDDrive
Remove-CDDrive
Set-CDDrive
SYNOPSIS
This cmdlet retrieves virtual CD drives.
SYNTAX
Get-CDDrive [[-VM] <VirtualMachine[]>] [[-Template] <Template[]>] [[-Snapshot] <Snapshot[]>] [-Id <String[]>]
[-Name <String[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet returns a set of virtual CD drives that belong to the virtual machines, templates, and snapshots
specified by the VirtualMachine, Template, and Snapshot parameters. At least one of these parameters must be
provided. To specify a server different from the default one, use the Server parameter.
PARAMETERS
-Id <String[]>
Specifies the IDs of the CD drives you want to retrieve.
Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that
matches exactly one of the string values in that list.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Name <String[]>
Specifies the names of the CD drives you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Snapshot <Snapshot[]>
Specifies the snapshots from which you want to retrieve virtual CD drives.
Required? false
Position? 3
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Template <Template[]>
Specifies the virtual machine templates from which you want to retrieve virtual CD drives.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-VM <VirtualMachine[]>
Specifies the virtual machines from which you want to retrieve virtual CD drives.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more CDDrive objects
NOTES
-------------------------- Example 1 --------------------------
Get-VM -Name VM | Get-CDDrive
Connects to a vSphere server and retrieves the CD drive of the virtual machine named VM.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... Drive.html
New-CDDrive
Remove-CDDrive
Set-CDDrive