Set-VDBlockedPolicy
This cmdlet modifies the blocking policy for distributed ports at switch, port group, or port level (depending on the input policy).
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Policy | BlockedPolicy[] | 1 |
|
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.BlockedPolicyExamples
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.