Remove-SCStorageVolume
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Remove-SCStorageVolume Cmdlet 會使用 Virtual Machine Manager 伺服器刪除現有的儲存體磁片區。
範例
範例 1:移除儲存磁片區
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
第一個命令會取得名為 vol1 的磁片區物件,然後將該物件儲存在$volume變數中。
第二個命令會移除儲存在 $Volume 中的磁片區。
參數
-JobGroup
{{Fill JobGroup Description}}
Type: | Guid |
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
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 |
-StorageVolume
Type: | StorageVolume |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |