Get-Physical
Extent
Syntax
Get-PhysicalExtent
-VirtualDisk <CimInstance>
[-CimSession <CimSession>]
[<CommonParameters>]
Get-PhysicalExtent
-StorageTier <CimInstance>
[-CimSession <CimSession>]
[<CommonParameters>]
Get-PhysicalExtent
-PhysicalDisk <CimInstance>
[-CimSession <CimSession>]
[<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
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 |
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 |
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
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.