Get-DeployRuleSet Command | Vmware PowerCLI Reference

Get-DeployRuleSet

Gets the current working rule set or the current active rule set. The active rule set governs how new hosts are to be deployed. The working set can be used to test out changes before making them active. By default, any cmdlets that change the rule set will immediately activate the change. However, you can pass the NoActivate parameter to the cmdlet to delay activation until Switch-ActiveDeployRuleSet is called on the working rule set.

Syntax

Get-DeployRuleSet
[-Active ]
[-Working ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Active SwitchParameter named
Retrieve the active rule set.
optional Working SwitchParameter named
Retrieve the working rule set.

Output

Examples

Example 1

C:\PS&#62 Get-DeployRuleSet

Get the active deploy rule set.

Example 2

C:\PS&#62 Get-DeployRuleSet -working

Get the working deploy rule set.

Related Commands

DeployRule

Adds one or more rules to the rule set.

Clones an existing rule.

Gets a DeployRule object.

Creates a new rule.

Removes a rule from the working rule set.

Updates an existing rule.

DeployRuleSet

Gets the current working rule set or the current active rule set.

Sets the list of rules in the working rule set.

DeployRuleSetCompliance

Remediate any non-compliant associations discovered by Test-DeployRuleSetCompliance

Checks whether hosts are compliant with rules.