PowerCLI Reference

Remove-VDSwitchPrivateVlan

Synopsis

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

Syntax

Remove-VDSwitchPrivateVlan [-VDSwitchPrivateVlan] <VDSwitchPrivateVlan[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-VDSwitchPrivateVlan
New-VDSwitchPrivateVlan

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VDSwitchPrivateVlanVDSwitchPrivateVlan[]Specifies the private VLAN configuration entry that you want to remove.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-VDSwitchPrivateVlan -VDSwitch "MyVDSwitch" -PrimaryVlanId 1,3,5 | Remove-VDSwitchPrivateVlan

Removes the private VLAN configuration entries with specified primary identities from a vSphere distributed switch named "MyVDSwitch".


Copyright © VMware, Inc. All rights reserved.