Set-SCStorageClassification

Modifies the properties of an existing storage classification.

Syntax

Set-SCStorageClassification [-StorageClassification] <StorageClassification> [-Description <String>]
 [-JobVariable <String>] [-Name <String>] [-PROTipID <Guid>] [-RunAsynchronously] [<CommonParameters>]

Description

The Set-SCStorageClassification cmdlet modifies the properties of an existing storage classification.

Examples

Example 1: Update the name of a storage classification

PS C:\> $Class = @(Get-SCStorageClassification)[0]
PS C:\> Set-SCStorageClassification -StorageClassification $Class -Name "Tier2"

The first command gets the first item in the storage classification array, and then stores it in the $Class variable.

The second command changes the name of the storage classification stored in $Class to Tier2.

Parameters

-Description

Specifies a description for the storage classification.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies the name of a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the storage classification.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageClassification

Specifies a storage classification object.

Type:StorageClassification
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

StorageClassficiation

This cmdlet returns a **StorageClassficiation** object.