Remove-SCStorageVolume
Supprime un volume de stockage existant.
Syntax
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
L’applet de commande Remove-SCStorageVolume supprime un volume de stockage existant à l’aide du serveur Virtual Machine Manager.
Exemples
Exemple 1 : Supprimer un volume de stockage
PS C:\> $volume = Get-SCStorageVolume -Name "vol1"
PS C:\> Remove-SCStorageVolume -StorageVolume $volume
La première commande obtient l’objet de volume nommé vol1, puis stocke cet objet dans la variable $volume.
La deuxième commande supprime le volume stocké dans $Volume.
Paramètres
-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