sys.sp_syspolicy_repair_policy_automation

general
#stored-procedure

Description

Repairs policy automation in Policy-Based Management. For example, you can use this stored procedure to repair triggers and jobs that are associated with policies that are configured to use “On schedule” or “On change” evaluation modes. This stored procedure has no parameters.

Syntax

sp_syspolicy_repair_policy_automation

Permissions

06/23/2025 For example, you can use this stored procedure to repair triggers and jobs that are associated with policies that are configured to use “On schedule” or “On change” evaluation modes. syntaxsql This stored procedure has no parameters. (success) or (failure). You must run in the context of the system database. Requires membership in the fixed database role. ) Important

Examples

Example 1

EXECUTE msdb.dbo.sp_syspolicy_repair_policy_automation;
GO