Set-VMFibreChannelHba

Configures a Fibre Channel host bus adapter on a virtual machine.

Syntax

Set-VMFibreChannelHba
   [-VMName] <String>
   [-WorldWideNodeNameSetA] <String>
   [-WorldWidePortNameSetA] <String>
   [-WorldWideNodeNameSetB] <String>
   [-WorldWidePortNameSetB] <String>
   [-ComputerName <String[]>]
   [-Passthru]
   -SanName <String>
   [-Confirm]
   [-WhatIf]
Set-VMFibreChannelHba
   [-VMName] <String>
   [-WorldWideNodeNameSetA] <String>
   [-WorldWidePortNameSetA] <String>
   [-WorldWideNodeNameSetB] <String>
   [-WorldWidePortNameSetB] <String>
   [-ComputerName <String[]>]
   [-Passthru]
   [-GenerateWwn]
   [-Confirm]
   [-WhatIf]
Set-VMFibreChannelHba
   [-VMName] <String>
   [-WorldWideNodeNameSetA] <String>
   [-WorldWidePortNameSetA] <String>
   [-WorldWideNodeNameSetB] <String>
   [-WorldWidePortNameSetB] <String>
   [-ComputerName <String[]>]
   [-NewWorldWideNodeNameSetA <String>]
   [-NewWorldWideNodeNameSetB <String>]
   [-NewWorldWidePortNameSetA <String>]
   [-NewWorldWidePortNameSetB <String>]
   [-Passthru]
   [-Confirm]
   [-WhatIf]
Set-VMFibreChannelHba
   [-VMFibreChannelHba] <VMFibreChannelHba>
   [-Passthru]
   [-GenerateWwn]
   [-Confirm]
   [-WhatIf]
Set-VMFibreChannelHba
   [-VMFibreChannelHba] <VMFibreChannelHba>
   [-NewWorldWideNodeNameSetA <String>]
   [-NewWorldWideNodeNameSetB <String>]
   [-NewWorldWidePortNameSetA <String>]
   [-NewWorldWidePortNameSetB <String>]
   [-Passthru]
   [-Confirm]
   [-WhatIf]
Set-VMFibreChannelHba
   [-VMFibreChannelHba] <VMFibreChannelHba>
   [-Passthru]
   -SanName <String>
   [-Confirm]
   [-WhatIf]

Description

The Set-VMFibreChannelHba cmdlet configures a Fibre Channel host bus adapter on a virtual machine.

Examples

Example 1

PS C:\>Get-VMFibreChannelHba -VMName MyVM | Set-VMFibreChannelHba -GenerateWwn

Configures a Fibre Channel host bus adapter on a virtual machine named MyVM, with World Wide Names to be generated automatically.

Parameters

-ComputerName

Specifies one or more Hyper-V hosts on which a Fibre Channel host bus adapter is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer - use "localhost" or a dot (".") to specify the local computer explicitly.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-GenerateWwn

Specifies that the World Wide Names for sets A and B are to be generated automatically. When this parameter is specified, parameters WorldWideNodeNameSetA, WorldWideNodeNameSetB, WorldWidePortNameSetA, and WorldWidePortNameSetB cannot be used.

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

-NewWorldWideNodeNameSetA

Specifies the World Wide Node name of address set A to be associated with the Fibre Channel host bus adapter.

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

-NewWorldWideNodeNameSetB

Specifies the World Wide Node name of address set B to be associated with the Fibre Channel host bus adapter.

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

-NewWorldWidePortNameSetA

Specifies the World Wide Port name of address set A to be associated with the Fibre Channel host bus adapter.

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

-NewWorldWidePortNameSetB

Specifies the World Wide Port name of address set B to be associated with the Fibre Channel host bus adapter.

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

-Passthru

Specifies that an object is to be passed through to the pipeline representing the configured Fibre Channel host bus adapter.

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

-SanName

Specifies the name of the virtual storage area network (SAN) to be associated with the Fibre Channel host bus adapter.

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

-VMFibreChannelHba

Specifies the Fibre Channel host bus adapter to be configured.

Type:VMFibreChannelHba
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMName

Specifies the name of the virtual machine to which the virtual Fibre Channel host bus adapter parameters are to be set.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

-WorldWideNodeNameSetA

Specifies the World Wide Node name of address set A that is associated with the Fibre Channel host bus adapter.

Type:String
Aliases:Wwnn1
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WorldWideNodeNameSetB

Specifies the World Wide Node name of address set B that is associated with the Fibre Channel host bus adapter.

Type:String
Aliases:Wwnn2
Position:4
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WorldWidePortNameSetA

Specifies the World Wide Port name of address set A that is associated with the Fibre Channel host bus adapter.

Type:String
Aliases:Wwpn1
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WorldWidePortNameSetB

Specifies the World Wide Port name of address set B that is associated with the Fibre Channel host bus adapter.

Type:String
Aliases:Wwpn2
Position:5
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False