Repair-DeployRuleSetCompliance Command | Vmware PowerCLI Reference

Repair-DeployRuleSetCompliance

Remediates any differences discovered by between the rules and the actual associations between hosts and their items. Use this cmdlet if you added or changed a rule and want to apply the change to all affected hosts.Run Test-DeployRuleSetCompliance to retrieve the required TestResult object.You must have the privileges necessary to perform the association operations.

Syntax

Repair-DeployRuleSetCompliance
-TestResult < TestResult >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
TestResult TestResult named
  • pipeline
Output from a call to Test-DeployRuleSetCompliance.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Get-VMHost h1 | Test-DeployRuleSetCompliance | Repair-DeployRuleSetCompliance

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.