Remove-VirtualSwitchPhysicalNetworkAdapter
This cmdlet removes the specified host physical NICs from the standard virtual switch.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
VMHostNetworkAdapter | PhysicalNic[] | named |
|
Specifies the network adapters you want to remove. |
optional | ProgressAction | ActionPreference | named |
|
Output
Examples
Example 1
Get-VMhost "myVMhost" | Get-VMHostNetworkAdapter -Physical -Name "vmnic1" | Remove-VirtualSwitchPhysicalNetworkAdapter
Removes a VMHost NIC from the virtual switch it is attached to.
Related Commands
VirtualSwitch
This cmdlet retrieves the virtual switches associated with a virtual machine host or used by a virtual machine.
This cmdlet creates a new virtual switch.
This cmdlet removes the specified virtual switches from their locations.
This cmdlet modifies the properties of the specified virtual switch.
VirtualSwitchPhysicalNetworkAdapter
This cmdlet adds a host physical NIC to a standard virtual switch.
This cmdlet removes the specified host physical NICs from the standard virtual switch.