Get-VirtualDisk
Get-VirtualDisk [[-FriendlyName] <String[]>] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>][-IsSnapshot <Boolean[]>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-Disk <CimInstance>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot<Boolean[]>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-TargetVirtualDisk <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-SourceVirtualDisk <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-TargetPort <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-InitiatorId <CimInstance>][-IsSnapshot <Boolean[]>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-MaskingSet <CimInstance>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-InitiatorPort <CimInstance>][-IsSnapshot <Boolean[]>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-StorageJob <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-StorageTier <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-NoRedundancy] [-OtherUsageDescription <String[]>] [-PhysicalDisk <CimInstance>] [-PhysicalRangeMax <UInt64>][-PhysicalRangeMin <UInt64>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-StoragePool <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-StorageNode <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>][-OtherUsageDescription <String[]>] [-StorageSubSystem <CimInstance>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>][<CommonParameters>]
Get-VirtualDisk [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-IsSnapshot <Boolean[]>] [-Name<String[]>] [-OtherUsageDescription <String[]>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
The Get-VirtualDisk cmdlet returns a list of VirtualDisk objects, across all storage pools, across all providers, or optionally a filtered subset based on provided criteria.
Parameters
-CimSession [<CimSession[]>]
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-Disk [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a Disk object as input. The Disk CIM object is exposed by the Get-Disk cmdlet.
-FriendlyName [<String[]>]
- Accepts pipeline input ByPropertyName
Specifies a friendly name for a disk. The friendly name may be defined by a user and is not guaranteed to be unique.
-HealthStatus [<HealthStatus[]>]
Specifies the status of an object and indicates if the object is Healthy or Warning Unhealthy.
-InitiatorId [<CimInstance>]
- Accepts pipeline input ByValue
Accepts an InitiatorId object as input. The Initiator ID CIM object is exposed by the Get-InitiatorId cmdlet.
-InitiatorPort [<CimInstance>]
- Accepts pipeline input ByValue
Accepts an InitiatorPort object as input. The Initiator Port CIM object is exposed by the Get-InitiatorPort cmdlet.
-IsSnapshot [<Boolean[]>]
Specifies that the virtual disk is a snapshot of another virtual disk.
-MaskingSet [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a MaskingSet object as input. The Masking Set CIM object is exposed by the Get-MaskingSet cmdlet.
-Name [<String[]>]
- Accepts pipeline input ByPropertyName
Specifies the name of an object or setting.
-NoRedundancy [<SwitchParameter>]
Indicates that this cmdlet gets virtual disks that have one remaining copy of data stored on the physical disk.
-OtherUsageDescription [<String[]>]
Specifies the usage of this object.
-PhysicalDisk [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a PhysicalDisk object as input. The Physical Disk CIM object is exposed by the Get-PhysicalDisk cmdlet.
-PhysicalRangeMax [<UInt64>]
This parameter is reserved for future use.
-PhysicalRangeMin [<UInt64>]
This parameter is reserved for future use.
-SourceVirtualDisk [<CimInstance>]
Specifies a virtual disk as a CIMInstance object. The cmdlet gets the snapshot or clone virtual disks that were created from the virtual disk that you specify. To obtain a virtual disk object, use the Get-VirtualDisk cmdlet.
-StorageJob [<CimInstance>]
- Accepts pipeline input ByValue
Specifies an outstanding storage job as a CIMInstance object. The cmdlet gets the virtual disks associated with the storage jobs that you specify. To obtain a virtual disk object, use the Get-StorageJob cmdlet.
-StorageNode [<CimInstance>]
- Accepts pipeline input ByValue
Specifies a storage node as a CIMInstance object. The cmdlet gets the virtual disks that belong to the storage node that you specify. The virtual disks that belong to the storage node have read/write permissions on the node. To obtain a virtual disk object, use the Get-StorageNode cmdlet.
-StoragePool [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a StoragePool object as input. The Storage Pool CIM object is exposed by the Get-StoragePool cmdlet.
-StorageSubSystem [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a StorageSubsystem object as input. The Storage Subsystem CIM object is exposed by the Get-StorageSubsystem cmdlet.
-StorageTier [<CimInstance>]
- Accepts pipeline input ByValue
Specifies a storage tier as a CIMInstance object. The cmdlet gets the virtual disks included in the storage tier that you specify. To obtain a virtual disk object, use the Get-StorageTier cmdlet.
-TargetPort [<CimInstance>]
- Accepts pipeline input ByValue
Accepts a TargetPort object as input. The Target Port CIM object is exposed by the Get-TargetPort cmdlet.
-TargetVirtualDisk [<CimInstance>]
Specifies a virtual disk as a CIMInstance object. The cmdlet gets the virtual disk from which the snapshot or clone virtual disk that you specify were created. To obtain a virtual disk object, use the Get-VirtualDisk cmdlet.
-ThrottleLimit [<Int32>]
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-UniqueId [<String[]>]
- Accepts pipeline input ByPropertyName
Specifies an ID used to uniquely identify a Disk object in the system. The ID persists through restarts.
-Usage [<Usage[]>]
Indicates the intended usage of the virtual disk.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable.
Inputs
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_DiskOutputs
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDiskThis work is licensed under a Creative Commons Attribution 4.0 International. It is attributed to Microsoft Corporation and can be found here.
PowerShell Commands