Freigeben über


Remove-SCStorageZone

Removes a zone from a zone set.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageZone

Specifies a Fibre Channel zone in a zone set.

Parameter properties

Type:StorageZone
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

StorageZone

This cmdlet returns a StorageZone object.