Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-PhysicalExtentAssociation

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.

SYNTAX

Get-PhysicalExtentAssociation -InputObject <CimInstance> [-CimSession <CimSession>] [<CommonParameters>]

DESCRIPTION

The Get-PhysicalExtentAssociation cmdlet gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.

EXAMPLES

Example 1: Get a physical extent association for a physical extent

PS C:\>Get-PhysicalExtent -PhysicalDisk (Get-PhysicalDisk -FriendlyName "PhysicalDisk4") | Select-Object -Last 1 | Get-PhysicalExtentAssociation

This command uses Get-PhysicalExtent to get all physical extents on the physical disk named PhysicalDisk4. The command passes them to the Select-Object cmdlet by using the pipeline operator. That common Windows PowerShell cmdlet selects the last physical extent returned. That physical extent is passed to the current cmdlet, which gets its physical extent association.

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
Parameter Sets: (All)
Aliases: 

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

-InputObject

Specifies the input object that is used in a pipeline command.

Type: CimInstance
Parameter Sets: (All)
Aliases: 

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

CommonParameters

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

INPUTS

PhysicalExtent

You can pass a PhysicalExtent object to this cmdlet.

OUTPUTS

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

This cmdlet returns a PhysicalDisk object, if the physical extent is associated with a physical disk.

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

This cmdlet returns a StorageTier object, if the physical extent is associated with a storage tier.

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

This cmdlet returns a VirtualDisk object, if the physical extent is associated with a virtual disk.

NOTES

Get-PhysicalDisk

Get-PhysicalExtent

© 2017 Microsoft