共用方式為


Remove-SCStorageZoneAlias

Removes a Fibre Channel zone alias from a fabric.

Syntax

Default (Default)

Remove-SCStorageZoneAlias
    [-StorageZoneAlias] <StorageZoneAlias>
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

The Remove-SCStorageZoneAlias cmdlet removes a Fibre Channel zone alias from a fabric.

Examples

Example 1: Remove a Fibre Channel zone alias

PS C:\> $ZoneAlias = Get-SCStorageZoneAlias -Name "ZoneAlias01"
PS C:\> Remove-SCStorageZoneAlias -StorageZoneAlias $ZoneAlias

The first command gets the zone alias object named ZoneAlias01, and then stores that object in the $ZoneAlias variable.

The second command removes the zone alias stored in $ZoneAlias.

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

-StorageZoneAlias

Specifies a Fibre Channel zone alias that this cmdlet removes.

Parameter properties

Type:StorageZoneAlias
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

StorageZoneAlias

This cmdlet returns a StorageZoneAlias object.