## PowerCLI Reference

# Remove-VDSwitchPhysicalNetworkAdapter

## Synopsis

This cmdlet removes host physical network adapters from the vSphere distributed switches they are connected to.

Syntax

Remove-VDSwitchPhysicalNetworkAdapter [-VMHostNetworkAdapter] <PhysicalNic[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Add-VDSwitchPhysicalNetworkAdapter

Detailed Description

This cmdlet removes host physical network adapters from the vSphere distributed switches they are connected to.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VMHostNetworkAdapter | PhysicalNic[] | Specifies the host physical network adapters that you want to remove from the vSphere distributed switch it is connected to. | true | true (ByValue)
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

None

Notes

Examples

-------------- Example 1 --------------

    Get-VMhost -Name "MyVMhost" | Get-VMHostNetworkAdapter -Physical -Name vmnic0 | Remove-VDSwitchPhysicalNetworkAdapter

Removes the specified host physical network adapter from the vSphere distributed switch that it is connected to.

Copyright © VMware, Inc. All rights reserved.