PowerCLI Reference

vSphere Auto Deploy Reference

Switch-ActiveDeployRuleSet

Synopsis

Activates a rule set.

Syntax

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

Related Commands

Get-DeployRuleSet

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
DeployRuleSetDeployRuleSetThe rule set to activate.falsetrue (ByValue)

Return Type

VMware.DeployAutomation.Types.DeployRuleSet

Notes

Examples

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

C:\PS> Switch-ActiveDeployRuleSet

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

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

C:\PS> Switch-ActiveDeployRuleSet $ruleSet

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


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.