Get-VirtualDisk
Returns a list of VirtualDisk objects, across all storage pools, across all providers, or optionally a filtered subset based on provided criteria.
Get-VirtualDisk
[[-FriendlyName] <String[]>]
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-TargetPort <CimInstance>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-UniqueId <String[]>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-InitiatorId <CimInstance>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-Name <String[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-TargetVirtualDisk <CimInstance>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-SourceVirtualDisk <CimInstance>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-MaskingSet <CimInstance>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-InitiatorPort <CimInstance>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-Disk <CimInstance>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-PhysicalDisk <CimInstance>]
[-PhysicalRangeMax <UInt64>]
[-PhysicalRangeMin <UInt64>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-StoragePool <CimInstance>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
Get-VirtualDisk
[-AsJob]
[-CimSession <CimSession[]>]
[-HealthStatus <HealthStatus[]>]
[-IsSnapshot <Boolean[]>]
[-OtherUsageDescription <String[]>]
[-StorageSubSystem <CimInstance>]
[-ThrottleLimit <Int32>]
[-Usage <Usage[]>]
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.
PS C:\>Get-VirtualDisk
This example returns all VirtualDisk objects across all visible StoragePool objects, across all visible StorageProvider objects.
PS C:\>$stpool = (Get-StoragePool -FriendlyName "SpacesPool")
PS C:\>Get-VirtualDisk -StoragePool $stpool
This example lists only the virtual disks from the StoragePool object named SpacesPool.
PS C:\>Get-VirtualDisk | Where-Object -FilterScript {$_.HealthStatus -Ne "Healthy"}
This example lists all virtual disks, across all pools, and all providers, which are not currently in a healthy state.
PS C:\>$part = (Get-Partition -DriveLetter Y)
PS C:\>Get-VirtualDisk -Partition $part
This example gets the virtual disk associated with the partition with drive letter Y.
ps_cimcommon_asjob
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Accepts a Disk object as input. The Disk CIM object is exposed by the Get-Diskhttp://technet.microsoft.com/library/3929eb27-1365-42ca-8acf-68b364c3599f cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a friendly name for a disk. The friendly name may be defined by a user and is not guaranteed to be unique.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the status of an object and indicates if the object is Healthy or Warning Unhealthy.
Type: | HealthStatus[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Accepts an InitiatorId object as input. The Initiator ID CIM object is exposed by the Get-InitiatorIdhttp://technet.microsoft.com/library/56c96b69-33c0-402b-8813-d64a4434011d cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Accepts an InitiatorPort object as input. The Initiator Port CIM object is exposed by the Get-InitiatorPorthttp://technet.microsoft.com/library/580a19cf-26d1-45bb-ad34-a6265e2efacf cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies that the virtual disk is a snapshot of another virtual disk.
Type: | Boolean[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Accepts a MaskingSet object as input. The Masking Set CIM object is exposed by the Get-MaskingSethttp://technet.microsoft.com/library/a7ef71fd-f7f6-4231-8799-0e96dd9eac84 cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the name of an object or setting.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the usage of this object.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Accepts a PhysicalDisk object as input. The Physical Disk CIM object is exposed by the Get-PhysicalDiskhttp://technet.microsoft.com/library/a204dcde-bfac-43ac-9b79-d81384f255be cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Accepts a StoragePool object as input. The Storage Pool CIM object is exposed by the Get-StoragePoolhttp://technet.microsoft.com/library/288acad9-7678-45c2-b7b4-3a0522fea499 cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Accepts a StorageSubsystem object as input. The Storage Subsystem CIM object is exposed by the Get-StorageSubsystemhttp://technet.microsoft.com/library/ea364a0b-06d6-4653-b41c-be69b8038b54 cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Accepts a TargetPort object as input. The Target Port CIM object is exposed by the Get-TargetPorthttp://technet.microsoft.com/library/4c139739-cda3-4379-b87b-60b1b4db8cd2 cmdlet.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 PowerShell® 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.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an ID used to uniquely identify a Disk object in the system. The ID persists through restarts.
Type: | String[] |
Aliases: | Id |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates the intended usage of the virtual disk.
Type: | Usage[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
The Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.