Set-SCStorageFileShare
修改儲存體檔案共用。
Syntax
Set-SCStorageFileShare
[-StorageClassification <StorageClassification>]
[-StorageFileShare] <StorageFileShare>
[-Description <String>]
[-DedupMode <DedupMode>]
[-IsAvailableForPlacement <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCStorageFileShare Cmdlet 會修改儲存體檔案共用。
範例
範例 1:更新儲存體檔案共用的儲存體分類
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $StorageClass = Get-SCStorageClassification -Name "StorageClassification02"
PS C:\> Set-SCStorageFileShare -StorageFileShare $FileShare -StorageClassification $StorageClass
第一個命令會取得名為 FileShare01 的儲存體檔案共用物件,並將物件儲存在$FileShare變數中。
第二個命令會取得名為 StorageClassification02 的儲存體分類物件,並將物件儲存在$StorageClass變數中。
最後一個命令會將 FileShare01 上的儲存體分類變更為 StorageClassification02。
參數
-DedupMode
根據工作負載,對磁片區或檔案共用套用重復資料刪除。 此參數可接受的值為:
- 0 - 已停用
- 1 - GeneralPurpose
- 2 - Hyper-V
- 3 - 備份
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
指定儲存體檔案共用的描述。
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
指定追蹤工作進度,並將工作進度存放在這個參數命名的變數中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作之 PRO 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
指定儲存體分類物件。
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileShare
指定儲存體檔案共用。
Type: | StorageFileShare |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |