Windows PowerShell command on Get-command Get-StorageTier
MyWebUniversity

Windows PowerShell command on Get-command Get-StorageTier

NAME

Get-StorageTier

SYNOPSIS

Gets storage tiers on Windows Storage subsystems.

SYNTAX

Get-StorageTier [[-FriendlyName] ] [-CimSession ] [-MediaType ]

[-ThrottleLimit ] []

Get-StorageTier [-CimSession ] [-MediaType ] [-ThrottleLimit ] [-VirtualDisk

] []

Get-StorageTier [-CimSession ] [-MediaType ] [-StoragePool ]

[-ThrottleLimit ] []

Get-StorageTier [-CimSession ] [-MediaType ] [-ThrottleLimit ] [-UniqueId

] []

DESCRIPTION

The Get-StorageTier cmdlet gets storage tiers on Windows Storage subsystems. Storage tiers are physical disks that

are grouped by characteristics, for example, solid-state drives (SSD) and hybrid hard drives (HHD).

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

-FriendlyName []

Specifies an array of friendly names of storage tiers to get. Required? false Position? 1 Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-MediaType []

Specifies an array of media types. The cmdlet gets the storage tiers for the media type that you specify. The acceptable values for this parameter are:

-- SSD

-- HDD

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-StoragePool []

Specifies a storage pool as a CIMInstance object. The cmdlet gets the storage tiers for the storage pool that

you specify. To obtain a storage pool, use the Get-StoragePool cmdlet.

Required? false Position? named Default value none Accept pipeline input? True (ByValue) Accept wildcard characters? false

-ThrottleLimit []

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-UniqueId []

Specifies an array of IDs of storage tiers to get. Required? false Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-VirtualDisk []

Specifies a virtual disk as a CIMInstance object. The cmdlet gets the storage tiers for the virtual disk that

you specify. To obtain a virtual disk, use theGet-VirtualDisk cmdlet.

Required? false Position? named Default value none Accept pipeline input? True (ByValue) 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

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool http://msdn.microsoft.com/library/windows/desktop/hh830551.aspx You can use the pipeline operator to pass an MSFT_StoragePool object to the StoragePool parameter to get the storage tier associated with the StoragePool object. Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk http://msdn.microsoft.com/library/windows/desktop/hh830584.aspx You can use the pipeline operator to pass an MSFT_VirtualDisk object to the VirtualDisk parameter to get the storage tier associated with the VirtualDisk object.

OUTPUTS

MSFT_StorageTier http://msdn.microsoft.com/library/windows/desktop/dn535818(v=vs.85).aspx This cmdlet returns an object that contains details about the storage tier, such as tier friendly name, media type and size.

Example 1: Get a storage tier

PS C:\>Get-StorageTier -FriendlyName "StoreTier01"

This command gets the storage tier named StoreTier01.

Example 2: Get a storage tier from a storage pool

PS C:\> Get-StoragePool -StoragePoolFriendlyName "StorePool01" | Get-StorageTier

This command gets the object that contains the storage pool named StorePool01, and then passes the object to the

Get-StorageTier cmdlet by using the pipeline operator. The Get-StorageTier cmdlet gets the storage tier from the

storage pool object.

Example 3: Get a storage tier from a virtual disk

PS C:\>Get-VirtualDisk-FriendlyName "VDisk01" | Get-StorageTier

This command uses the Get-VirtualDisk cmdlet to get the tiered virtual disk named VDisk01. The command passes the

virtual disk to the Get-StorageTier cmdlet by using the pipeline operator. The Get-StorageTier cmdlet gets the

storage tiers that compose the tiered virtual disk.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816415

New-StorageTier

Remove-StorageTier

Resize-StorageTier

Set-StorageTier



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