Windows PowerShell command on Get-command Get-PhysicalExtentAssociation
MyWebUniversity

Windows PowerShell command on Get-command Get-PhysicalExtentAssociation

NAME

Get-PhysicalExtentAssociation

SYNOPSIS

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

SYNTAX

Get-PhysicalExtentAssociation [-CimSession ] []

DESCRIPTION

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

with a physical extent.

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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false 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/windows/desktop/hh830532.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/windows/desktop/dn535818(v=vs.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/windows/desktop/hh830584.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-PhysicalDisk

Get-PhysicalExtent



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™