SyntaxRemove-VDSwitchPhysicalNetworkAdapter [-VMHostNetworkAdapter] <PhysicalNic> [-WhatIf] [-Confirm] [<CommonParameters>]
Related CommandsOnline version
Detailed DescriptionThis cmdlet removes host physical network adapters from the vSphere distributed switches they are connected to.
|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|
-------------- 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.