powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-CDDrive



NAME
Get-CDDrive

SYNOPSIS
Retrieves virtual CD drives.

SYNTAX
Get-CDDrive [[-VM] ] [[-Template] ] [[-Snapshot] ] [-Id ] [-Nam
e ] [-Server ] []


DESCRIPTION
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
-VM
Specify the virtual machines from which you want to retrieve virtual CD drives.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Template
Specify the virtual machine templates from which you want to retrieve virtual CD drives.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Snapshot
Specify the snapshots from which you want to retrieve virtual CD drives.

Required? false
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Id
Specify the Ids of the CD drives you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Name
Specify the names of the CD drives you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
CDDrive


NOTES




-------------- EXAMPLE 1 --------------

C:\PS>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: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-CDDrive.html
New-CDDrive
Remove-CDDrive
Set-CDDrive