Remove-VDSwitchPhysicalNetworkAdapter Command | Vmware PowerCLI Reference

Remove-VDSwitchPhysicalNetworkAdapter

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

Syntax

Remove-VDSwitchPhysicalNetworkAdapter
-VMHostNetworkAdapter < PhysicalNic[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHostNetworkAdapter PhysicalNic[] named
  • pipeline
Specifies the host physical network adapters that you want to remove from the vSphere distributed switch it is connected to.
optional ProgressAction ActionPreference named

Output

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.

Related Commands

VDSwitch

This cmdlet exports the configuration of a specified vSphere distributed switch to a .zip file.

This cmdlet retrieves vSphere distributed switches.

This cmdlet creates vSphere distributed switches.

This cmdlet removes vSphere distributed switches.

This cmdlet modifies the configuration of vSphere distributed switches.

VDSwitchPhysicalNetworkAdapter

This cmdlet adds host physical network adapters to a vSphere distributed switch.

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

VDSwitchPrivateVlan

This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.

This cmdlet creates private VLAN configuration entries on a vSphere distributed switch.

This cmdlet removes private VLAN configuration entries from vSphere distributed switches.

VDSwitchVMHost

This cmdlet adds hosts to the specified vSphere distributed switch.

This cmdlet removes hosts from the specified vSphere distributed switches.