Set-VDBlockedPolicy Command | Vmware PowerCLI Reference

Set-VDBlockedPolicy

This cmdlet modifies the blocking policy for distributed ports at switch, port group, or port level (depending on the input policy).

Syntax

Set-VDBlockedPolicy
[ -Policy ] < BlockedPolicy[] >
[-Blocked < Boolean > ]
[-BlockedInherited < Boolean > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Policy BlockedPolicy[] 1
  • pipeline
Specifies the blocking policy that you want to configure.
optional Blocked Boolean named
Specifies whether packet forwarding is stopped for the corresponding distributed port, port group, or switch.
optional BlockedInherited Boolean named
Specifies whether the Blocked setting is inherited from a parent object, such as a distributed port group or switch.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.Vds.Types.V1.Policy.BlockedPolicy

Examples

Example 1

Get-VDPort -VDSwitch "MyVDSwitch" -ActiveOnly | Get-VDBlockedPolicy | Set-VDBlockedPolicy -Blocked

Retrieves all active distributed ports and updates their blocking policy to stop packet forwarding through them.

Example 2

Get-VDportgroup "MyVDPortgroup" | Get-VDPort | Get-VDBlockedPolicy | Set-VDBlockedPolicy -BlockedInherited

Retrieves the specified "MyVDPortgroup" distributed port group and updates the blocking policy of all ports inside the group to inherit the setting for packet forwarding from the one set on the distributed port group level.

Related Commands

VDBlockedPolicy

This cmdlet retrieves the blocking policy for distributed ports.

This cmdlet modifies the blocking policy for distributed ports.