Remove-VMFibreChannelHba

Removes a Fibre Channel host bus adapter from a virtual machine.

Syntax

Remove-VMFibreChannelHba
      [-VMFibreChannelHba] <VMFibreChannelHba[]>
      [-Passthru]
      [-CimSession <CimSession[]>]
      [-ComputerName <String[]>]
      [-Credential <PSCredential[]>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-VMFibreChannelHba
      [-VMName] <String>
      [-WorldWideNodeNameSetA] <String>
      [-WorldWidePortNameSetA] <String>
      [-WorldWideNodeNameSetB] <String>
      [-WorldWidePortNameSetB] <String>
      [-Passthru]
      [-CimSession <CimSession[]>]
      [-ComputerName <String[]>]
      [-Credential <PSCredential[]>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-VMFibreChannelHba cmdlet removes a Fibre Channel host bus adapter from a virtual machine.

Examples

Example 1

PS C:\> Get-VMFibreChannelHba -VMName MyVM | Remove-VMFibreChannelHba

Removes a Fibre Channel host bus adapter from a virtual machine MyVM.

Parameters

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

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

-ComputerName

Specifies one or more Hyper-V hosts on which the Fibre Channel host bus adapter is to be removed. 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
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

Specifies one or more user accounts that have permission to perform this action. The default is the current user.

Type:PSCredential[]
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 be pipeline representing the removed Fibre Channel host bus adapter.

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

-VMFibreChannelHba

Specifies one or more Fibre Channel host bus adapters to be removed from a virtual machine.

Type:VMFibreChannelHba[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMName

Specifies the virtual machine from which the Fibre Channel host bus adapters are to be removed.

Type:String
Position:0
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
Aliases:wi
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 associated with the Fibre Channel host bus adapter to be removed.

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

-WorldWideNodeNameSetB

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

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

-WorldWidePortNameSetA

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

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

-WorldWidePortNameSetB

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

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

Outputs

None

Default

Microsoft.HyperV.PowerShell.VMFibreChannelHba

If -PassThru is specified.