## 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

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VDSwitchPrivateVlan | VDSwitchPrivateVlan[] | Specifies the private VLAN configuration entry that you want to remove. | true | true (ByValue)
Confirm | SwitchParameter | If 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. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.