< Back
Get-PhysicalExtentAssociation
Post
NAME Get-PhysicalExtentAssociation
SYNOPSIS
Gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.
SYNTAX
Get-PhysicalExtentAssociation [-CimSession <CimSession>] [<CommonParameters>]
DESCRIPTION
The Get-PhysicalExtentAssociation cmdlet gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.
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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
PhysicalExtent
You can pass a PhysicalExtent object to this cmdlet.
OUTPUTS
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
http://msdn.microsoft.com/library/windo ... 30532.aspx
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
http://msdn.microsoft.com/library/windo ... s.85).aspx
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
http://msdn.microsoft.com/library/windo ... 30584.aspx
This cmdlet returns a VirtualDisk object, if the physical extent is associated with a virtual disk.
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.
RELATED LINKS
Get-PhysicalDiskStorageNodeView
Get-PhysicalExtentAssociation
SYNOPSIS
Gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.
SYNTAX
Get-PhysicalExtentAssociation [-CimSession <CimSession>] [<CommonParameters>]
DESCRIPTION
The Get-PhysicalExtentAssociation cmdlet gets the physical disk, storage tier, or virtual disk that is associated with a physical extent.
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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
PhysicalExtent
You can pass a PhysicalExtent object to this cmdlet.
OUTPUTS
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
http://msdn.microsoft.com/library/windo ... 30532.aspx
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
http://msdn.microsoft.com/library/windo ... s.85).aspx
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
http://msdn.microsoft.com/library/windo ... 30584.aspx
This cmdlet returns a VirtualDisk object, if the physical extent is associated with a virtual disk.
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.
RELATED LINKS
Get-PhysicalDiskStorageNodeView
Get-PhysicalExtentAssociation