< Back
Set-VDPortgroupOverridePolicy
Post
NAME 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>]
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
-BlockOverrideAllowed <Boolean>
Specifies whether overriding port blocking settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Policy <VDPortgroupOverridePolicy[]>
Specifies the port group overriding policy that you want to configure.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-ResetPortConfigAtDisconnect <Boolean>
Specifies whether the port configuration is reset when the port is disconnected.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SecurityOverrideAllowed <Boolean>
Specifies whether overriding security settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-TrafficShapingOverrideAllowed <Boolean>
Specifies whether overriding traffic shaping settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UplinkTeamingOverrideAllowed <Boolean>
Specifies whether overriding uplink teaming settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VlanOverrideAllowed <Boolean>
Specifies whether overriding VLAN settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The modified VDPortgroupOverridePolicy objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... olicy.html
Get-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>]
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
-BlockOverrideAllowed <Boolean>
Specifies whether overriding port blocking settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Policy <VDPortgroupOverridePolicy[]>
Specifies the port group overriding policy that you want to configure.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-ResetPortConfigAtDisconnect <Boolean>
Specifies whether the port configuration is reset when the port is disconnected.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SecurityOverrideAllowed <Boolean>
Specifies whether overriding security settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-TrafficShapingOverrideAllowed <Boolean>
Specifies whether overriding traffic shaping settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UplinkTeamingOverrideAllowed <Boolean>
Specifies whether overriding uplink teaming settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VlanOverrideAllowed <Boolean>
Specifies whether overriding VLAN settings is allowed.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The modified VDPortgroupOverridePolicy objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... olicy.html
Get-VDPortgroupOverridePolicy