Get-PhysicalExtent

Gets physical allocations for a physical disk, storage tier, or virtual disk.

Syntax

Get-PhysicalExtent
   [-CimSession <CimSession>]
   -PhysicalDisk <CimInstance>
   [<CommonParameters>]
Get-PhysicalExtent
   [-CimSession <CimSession>]
   -StorageTier <CimInstance>
   [<CommonParameters>]
Get-PhysicalExtent
   [-CimSession <CimSession>]
   -VirtualDisk <CimInstance>
   [<CommonParameters>]

Description

The Get-PhysicalExtent cmdlet gets the physical allocations for a physical disk, storage tier, or virtual disk.

Examples

Example 1: Get all physical extents on a disk

PS C:\>Get-PhysicalExtent -PhysicalDisk (Get-PhysicalDisk -FriendlyName "PhysicalDisk4")

This command gets all physical extents on the physical disk named PhysicalDisk4. The command uses Get-PhysicalDisk to obtain PhysicalDisk4.

Required Parameters

-PhysicalDisk

Specifies physical disk. To obtain a PhysicalDisk obje3t, use the Get-PhysicalDisk cmdlet.

Type:CimInstance
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-StorageTier

Specifies storage tier. To obtain a StorageTier object, use the Get-StorageTier cmdlet.

Type:CimInstance
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VirtualDisk

Specifies virtual disk. To obtain a VirtualDisk object, use the Get-VirtualDisk cmdlet.

Type:CimInstance
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-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.

Type:CimSession
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk

You can pass a PhysicalDisk object to this cmdlet.

Inputs

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageTier

You can pass a StorageTier object to this cmdlet.

Inputs

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

You can pass a VirtualDisk object to this cmdlet.

Outputs

PhysicalExtent

This cmdlet returns the physical allocation that is associated with the input object.