Set-StorageTier
Set-StorageTier
Modifies a storage tier.
Sintaxis
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>]
Descripción detallada
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.
Parámetros
-AsJob
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
Session |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Description<String>
Specifies a description for the storage tier.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-FriendlyName<String>
Specifies the friendly name of the storage tier to modify.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-InputObject<CimInstance[]>
Specifies the StorageTier object to modify. You can use this parameter, or you can pipe the input to this cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
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. Los valores aceptables para este parámetro son los siguientes:
-- SSD
-- HDD
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-NewFriendlyName<String>
Specifies a new friendly name for the storage tier.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ThrottleLimit<Int32>
Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0
, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-UniqueId<String>
Specifies the unique ID of the storage tier to modify.
Alias |
Id |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
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.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
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.
Notas
- 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.
Ejemplos
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"