Get-StorageTier
Gets storage tiers on Windows Storage subsystems.
Syntax
ByFriendlyName (Default)
Get-StorageTier
[[-FriendlyName] <String[]>]
[-MediaType <MediaType[]>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
ByUniqueId
Get-StorageTier
[-UniqueId <String[]>]
[-MediaType <MediaType[]>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
ByVirtualDisk
Get-StorageTier
[-MediaType <MediaType[]>]
[-VirtualDisk <CimInstance>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
ByStoragePool
Get-StorageTier
[-MediaType <MediaType[]>]
[-StoragePool <CimInstance>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
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).
Examples
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 -FriendlyName "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.
Parameters
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-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.
Parameter properties
Type: | CimSession[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Session |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FriendlyName
Specifies an array of friendly names of storage tiers to get.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByFriendlyName
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | 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
Parameter properties
Type: | MediaType[] |
Default value: | None |
Accepted values: | Unspecified, HDD, SSD, SCM |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | CimInstance |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByStoragePool
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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 PowerShell® 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.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-UniqueId
Specifies an array of IDs of storage tiers to get.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Id |
Parameter sets
ByUniqueId
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | 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.
Parameter properties
Type: | CimInstance |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByVirtualDisk
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
CimInstance
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.
CimInstance
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
This cmdlet returns an object that contains details about the storage tier, such as tier friendly name, media type and size.
Notes
- When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).