Remove-SCStorageVolume
Löscht ein vorhandenes Speichervolumen.
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Beschreibung
Das Cmdlet Remove-SCStorageVolume löscht ein vorhandenes Speichervolumen mithilfe des Virtual Machine Manager Server.
Beispiele
Beispiel 1: Entfernen eines Speichervolumens
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
Der erste Befehl ruft das Volumeobjekt "vol1" ab und speichert dieses Objekt dann in der $volume Variablen.
Der zweite Befehl entfernt das in $Volume gespeicherte Volume.
Parameter
-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