Edit

Get-VMDirectVirtualDisk

{{ Fill in the Synopsis }}

Syntax

ByVMName

Get-VMDirectVirtualDisk
    [-VMName] <String[]>
    [[-ControllerType] <ControllerType>]
    [[-ControllerNumber] <Int32>]
    [-CimSession <CimSession[]>]
    [-ControllerLocation <Int32>]
    [<CommonParameters>]

ByVM

Get-VMDirectVirtualDisk
    [-VM] <VirtualMachine[]>
    [[-ControllerType] <ControllerType>]
    [[-ControllerNumber] <Int32>]
    [-ControllerLocation <Int32>]
    [<CommonParameters>]

ByVMDriveController

Get-VMDirectVirtualDisk
    [-VMDriveController] <VMDriveController[]>
    [-ControllerLocation <Int32>]
    [<CommonParameters>]

Description

{{ Fill in the Description }}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Parameters

-CimSession

{{ Fill CimSession Description }}

Parameter properties

Type:

CimSession[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByVMName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ControllerLocation

{{ Fill ControllerLocation Description }}

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ControllerNumber

{{ Fill ControllerNumber Description }}

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByVMName
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByVM
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ControllerType

{{ Fill ControllerType Description }}

Parameter properties

Type:ControllerType
Default value:None
Accepted values:SCSI
Supports wildcards:False
DontShow:False

Parameter sets

ByVMName
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByVM
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VM

{{ Fill VM Description }}

Parameter properties

Type:

Microsoft.HyperV.PowerShell.VirtualMachine[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByVM
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMDriveController

{{ Fill VMDriveController Description }}

Parameter properties

Type:

Microsoft.HyperV.PowerShell.VMDriveController[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByVMDriveController
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMName

{{ Fill VMName Description }}

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByVMName
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Microsoft.HyperV.PowerShell.VirtualMachine

Microsoft.HyperV.PowerShell.VMDriveController

Outputs

Object