Set-SCStorageFileShare
Modifies a storage file share.
Syntax
Set-SCStorageFileShare
[-StorageClassification <StorageClassification>]
[-StorageFileShare] <StorageFileShare>
[-Description <String>]
[-DedupMode <DedupMode>]
[-IsAvailableForPlacement <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
The Set-SCStorageFileShare cmdlet modifies a storage file share.
Examples
Example 1: Update the storage classification for a storage file share
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $StorageClass = Get-SCStorageClassification -Name "StorageClassification02"
PS C:\> Set-SCStorageFileShare -StorageFileShare $FileShare -StorageClassification $StorageClass
The first command gets the storage file share object named FileShare01 and stores the object in the $FileShare variable.
The second command gets the storage classification object named StorageClassification02 and stores the object in the $StorageClass variable.
The last command changes the storage classification on FileShare01 to StorageClassification02.
Parameters
-DedupMode
Apply deduplication on the volume or file share based on the workload. The acceptable values for this parameter are:
- 0 - Disabled
- 1 - GeneralPurpose
- 2 - Hyper-V
- 3 - Backup
Type: | DedupMode |
Accepted values: | Disabled, GeneralPurpose, HyperV, Backup, NotAvailable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Specifies a description for the storage file share.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IsAvailableForPlacement
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Specifies that job progress is tracked and stored in the variable named by this parameter.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
Specifies a storage classification object.
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileShare
Specifies a storage file share.
Type: | StorageFileShare |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |