Remove-SCStorageVolume
Odstraní existující svazek úložiště.
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Rutina Remove-SCStorageVolume odstraní existující svazek úložiště pomocí serveru Virtual Machine Manager.
Příklady
Příklad 1: Odebrání svazku úložiště
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
První příkaz načte objekt svazku s názvem vol1 a pak tento objekt uloží do proměnné $volume.
Druhý příkaz odebere svazek uložený v $Volume.
Parametry
-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 |