Remove-SCStorageZone

从区域集中删除区域。

语法

Remove-SCStorageZone
      [-StorageZone] <StorageZone>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]

说明

Remove-SCStorageZone cmdlet 从区域集中删除区域。

示例

示例 1:从区域集中删除区域

PS C:\> $Zone = Get-SCStorageZone -Name "Zone01"
PS C:\> Remove-SCStorageZone -StorageZone $Zone

第一个命令获取名为 Zone01 的区域对象,然后将该对象存储在$Zone变量中。

第二个命令从区域集中删除存储在$Zone中的区域。

参数

-JobVariable

指定用于跟踪和存储作业进度的变量的名称。

类型:String
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-PROTipID

指定触发此操作的性能和资源优化提示(PRO 提示)的 ID。 此参数允许你审核 PRO 提示。

类型:Guid
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-RunAsynchronously

指示作业以异步方式运行,以便控件立即返回到命令行界面。

类型:SwitchParameter
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-StorageZone

指定区域集中的光纤通道区域。

类型:StorageZone
Position:0
默认值:None
必需:True
接受管道输入:True
接受通配符:False

输出

StorageZone

此 cmdlet 返回 StorageZone 对象。