Remove-SCStorageZone

Removes a zone from a zone set.

Syntax

Remove-SCStorageZone [-StorageZone] <StorageZone> [-JobVariable <String>] [-PROTipID <Guid>]
 [-RunAsynchronously] [<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
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageZone

Specifies a Fibre Channel zone in a zone set.

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

Outputs

StorageZone

This cmdlet returns a **StorageZone** object.