Set-StorageTier
Set-StorageTier
Modifies a storage tier.
構文
Parameter Set: ByUniqueIdNewFriendlyName
Set-StorageTier -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByFriendlyNameDescription
Set-StorageTier [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByFriendlyNameMediaType
Set-StorageTier [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-MediaType <MediaType> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByFriendlyNameNewFriendlyName
Set-StorageTier [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByObjectDescription
Set-StorageTier -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByObjectMediaType
Set-StorageTier -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-MediaType <MediaType> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByObjectNewFriendlyName
Set-StorageTier -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByUniqueIdDescription
Set-StorageTier -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByUniqueIdMediaType
Set-StorageTier -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-MediaType <MediaType> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
詳細説明
The Set-StorageTier cmdlet modifies a storage tier. Use this cmdlet to change the name and description of a storage tier, and to change the media type that is associated with storage tier.
パラメーター
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
Session |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
Specifies a description for the storage tier.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-FriendlyName<String>
Specifies the friendly name of the storage tier to modify.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<CimInstance[]>
Specifies the StorageTier object to modify. You can use this parameter, or you can pipe the input to this cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-MediaType<MediaType>
Specifies a media type for the storage tier. The cmdlet changes the media type that is associated with the storage tier to the media type that you specify. このパラメーターに対して使用できる値:
-- SSD
-- HDD
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-NewFriendlyName<String>
Specifies a new friendly name for the storage tier.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ThrottleLimit<Int32>
このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0
を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UniqueId<String>
Specifies the unique ID of the storage tier to modify.
エイリアス |
Id |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageSubsystem
You can use the pipeline operator to pass an array of MSFT_StorageTier objects to the InputObject parameter.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageTier
This cmdlet returns an MSFT_StorageTier object that contains details about the tier such as tier friendly name, media type and size.
注
- The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.
例
Example 1: Change the name of a storage tier
This command changes the friendly name of the storage tier that has the specified ID.
PS C:\> Set-StorageTier -UniqueId '{49dde1c4-5c34-11e2-8441-00155de88701}' -NewFriendlyName "FastTier"
Example 2: Change the description of a storage tier
This command uses the Get-StorageTier cmdlet to get the storage tier named FastTier, and then passes the storage tier to the Set-StorageTier cmdlet by using the pipeline operator. The Set-StorageTier cmdlet changes the description of the storage tier to the specified string.
PS C:\> Get-StorageTier -FriendlyName "FastTier" | Set-StorageTier -Description "This tier denotes fast media in the system"