Remove-SCStorageVolume
Elimina um volume de armazenamento existente.
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
O cmdlet Remove-SCStorageVolume elimina um volume de armazenamento existente utilizando o Servidor gestor de máquinas virtuais.
Exemplos
Exemplo 1: Remover um volume de armazenamento
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
O primeiro comando recebe o objeto de volume chamado vol1, e depois armazena esse objeto na variável $volume.
O segundo comando remove o volume armazenado em $Volume.
Parâmetros
-JobGroup
{{Preencha descrição do Grupo de Trabalho}}
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