Remove-SCStorageZone

Removes a zone from a zone set.

Syntax

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

Description

The Remove-SCStorageZone cmdlet removes a zone from a zone set.

Examples

Example 1: Remove a zone from a zone set

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

The first command gets the zone object named Zone01, and then stores that object in the $Zone variable.

The second command removes the zone stored in $Zone from the zone set.

Parameters

-JobVariable

Specifies the name of a variable that you use to track and store job progress.

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

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

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

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

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

-StorageZone

Specifies a Fibre Channel zone in a zone set.

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

Outputs

StorageZone

This cmdlet returns a StorageZone object.