PowerCLI Reference

Remove-VDSwitchPrivateVlan

Synopsis

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

Syntax

Remove-VDSwitchPrivateVlan [-VDSwitchPrivateVlan] <VDSwitchPrivateVlan[]> [-Confirm] [-WhatIf] [<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.