Remove-SCStorageVolume

删除现有存储卷。

语法

Remove-SCStorageVolume
      [-VMMServer <ServerConnection>]
      [-StorageVolume] <StorageVolume>
      [-JobGroup <Guid>]
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]

说明

Remove-SCStorageVolume cmdlet 使用 Virtual Machine Manager 服务器删除现有存储卷。

示例

示例 1:删除存储卷

PS C:\> $volume = Get-SCStorageVolume -Name "vol1" 
PS C:\> Remove-SCStorageVolume -StorageVolume $volume

第一个命令获取名为 vol1 的卷对象,然后将该对象存储在$volume变量中。 第二个命令删除存储在$Volume中的卷。

参数

-JobGroup

{{Fill JobGroup Description}}

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-JobVariable

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-PROTipID

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-RunAsynchronously

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-StorageVolume

Type:StorageVolume
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False