Get-StorageTierSupportedSize
Get-StorageTierSupportedSize
Gets the minimum and maximum possible sizes of a storage tier.
Syntax
Parameter Set: ByFriendlyName
Get-StorageTierSupportedSize [-FriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-ResiliencySettingName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByUniqueId
Get-StorageTierSupportedSize -UniqueId <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-ResiliencySettingName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: InputObject (cdxml)
Get-StorageTierSupportedSize -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-ResiliencySettingName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Detailed Description
The Get-StorageTierSupportSize cmdlet gets the minimum and maximum possible sizes of a storage tier. Use this information to create or extend a virtual disk with the specified resiliency setting on a Storage Spaces subsystem.
Parameters
-AsJob
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-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.
Aliases |
Session |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-FriendlyName<String[]>
Specifies an array of friendly names. The cmdlet gets the storage tiers that match the names that you specify.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-InputObject<CimInstance[]>
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-ResiliencySettingName<String>
Specifies the name of the desired resiliency setting, for example, Simple, Mirror, or Parity.
Aliases |
Name |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-ThrottleLimit<Int32>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UniqueId<String[]>
Specifies an array of unique IDs, as strings.
Aliases |
Id |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageTier
You can use the pipeline operator to pass an MSFT_StorageTier object to the InputObject parameter to get the storage tier supported size associated with the StorageTier object.
Outputs
The output type is the type of the objects that the cmdlet emits.
System.Management.Automation.PSCustomObject
This cmdlet returns an object that lists the minimum and maximum amounts of space that the specified type of virtual disk could use in the specified storage tier as well as the tier size divisor. These values are System.UInt64 objects.
Examples
Example 1: Get the size estimate for a mirror space
This command gets the storage tier supported size estimates for capacity of a Fast (SSD) tier for a mirror space by using the FriendlyName and ResiliencySettingName parameters.
PS C:\> Get-StorageTierSupportedSize -FriendlyName "*SSD*" -ResiliencySettingName "Mirror"