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
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
TestResult | TestResult | named |
|
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.