Remove-SCStorageVolume
Tar bort en befintlig lagringsvolym.
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Cmdleten Remove-SCStorageVolume tar bort en befintlig lagringsvolym med hjälp av Virtual Machine Manager-servern.
Exempel
Exempel 1: Ta bort en lagringsvolym
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
Det första kommandot hämtar volymobjektet vol1 och lagrar sedan objektet i variabeln $volume.
Det andra kommandot tar bort volymen som lagras i $Volume.
Parametrar
-JobGroup
{{Fyll i jobgroup-beskrivning}}
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