Switch-ActiveDeployRuleSet Command | Vmware PowerCLI Reference

Switch-ActiveDeployRuleSet

Activates a rule set so that new PXE requests are evaluated through the rule set. By default, the cmdlet activates the working rule set.You must have the "AutoDeploy.RuleSet.Activate" privilege on the root folder of vCenter Server to use this cmdlet.

Syntax

Switch-ActiveDeployRuleSet
[-DeployRuleSet < DeployRuleSet > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional DeployRuleSet DeployRuleSet named
  • pipeline
The rule set to activate.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Switch-ActiveDeployRuleSet

Switch the active deploy rule set to the working deploy rule set.

Example 2

Switch-ActiveDeployRuleSet $ruleSet

Switch the active deploy rule set to the rule set stored in the $ruleSet variable.

Related Commands

ActiveDeployRuleSet

Activates a rule set.