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

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostNetworkAdapterPhysicalNic[]Specifies the host physical network adapters that you want to remove from the vSphere distributed switch it is connected to.truetrue (ByValue)
ConfirmSwitchParameterIf 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.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

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.