PowerCLI Reference

Set-VDPortgroupOverridePolicy

Synopsis

This cmdlet modifies the policy for overriding port group settings at port level.

Syntax

Set-VDPortgroupOverridePolicy [-Policy] <VDPortgroupOverridePolicy[]> [-BlockOverrideAllowed <Boolean>] [-ResetPortConfigAtDisconnect <Boolean>] [-SecurityOverrideAllowed <Boolean>] [-TrafficShapingOverrideAllowed <Boolean>] [-UplinkTeamingOverrideAllowed <Boolean>] [-VlanOverrideAllowed <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-VDPortgroupOverridePolicy

Detailed Description

This cmdlet modifies the policy for overriding port group settings at port level. At least one of the Bool parameters must be specified.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
PolicyVDPortgroupOverridePolicy[]Specifies the port group overriding policy that you want to configure.trueTrue (ByValue)
BlockOverrideAllowedBooleanSpecifies whether overriding port blocking settings is allowed.falseFalse
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
ResetPortConfigAtDisconnectBooleanSpecifies whether the port configuration is reset when the port is disconnected.falseFalse
SecurityOverrideAllowedBooleanSpecifies whether overriding security settings is allowed.falseFalse
TrafficShapingOverrideAllowedBooleanSpecifies whether overriding traffic shaping settings is allowed.falseFalse
UplinkTeamingOverrideAllowedBooleanSpecifies whether overriding uplink teaming settings is allowed.falseFalse
VlanOverrideAllowedBooleanSpecifies whether overriding VLAN settings is allowed.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

The modified VDPortgroupOverridePolicy objects

Notes

Examples

-------------------------- Example 1 --------------------------

Get-VDPortgroup "MyVDPortgroup" | Get-VDPortgroupOverridePolicy | Set-VDPortgroupOverridePolicy -BlockOverrideAllowed $true

Retrieves a distributed port group named "MyVDPortgroup" and updates its overriding policy to allow the port blocking settings to override the default settings at port group level.

-------------------------- Example 2 --------------------------

Get-VDSwitch "MyVDSwitch" |
Get-VDPortgroup | Get-VDPortgroupOverridePolicy |
Set-VDPortgroupOverridePolicy -ResetPortConfigAtDisconnect $true
-TrafficShapingOverrideAllowed $true

Retrieves all port groups inside a distributed switch named "MyVDSwitch" and updates their overriding policies with the options to override the traffic shaping setting at port level, and to reset the distributed port network settings back to the port group settings.


Copyright © VMware, Inc. All rights reserved.