Remove-SCStorageVolume
Elimina un volume di archiviazione esistente.
Sintassi
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Descrizione
Il cmdlet Remove-SCStorageVolume elimina un volume di archiviazione esistente usando il server Di Gestione macchine virtuali.
Esempio
Esempio 1: Rimuovere un volume di archiviazione
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
Il primo comando ottiene l'oggetto volume denominato vol1 e quindi archivia l'oggetto nella variabile $volume.
Il secondo comando rimuove il volume archiviato in $Volume.
Parametri
-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