Folks,

In ConfigMgr 2012 R2, I created a Configuration Item per the following:

 

*         Baseline

o   Configuration Item

*  Script Setting

*         Discovery Script --> Checks if a process is running (PowerShell)

*         Remediation Script --> Kicks off a process (PowerShell)

*         Compliance Rule --> Script returns at least one value 

 

I assigned the Baseline to a Collection, containing two test systems. Both
test systems are validating the Configuration Item, and its Script Setting
correctly, but the remediation script is not being executed.

 

I have validated the following:

 

*         PowerShell Execution Policy is set to Bypass (via a custom Device
Client Settings Package)

*         Discovery Script is being successfully executed

*         Compliance Rule is working correctly

*         Configuration Manager Control Panel applet shows Baseline as
non-compliant, when process is not running

*         Baseline Deployment --> Checked the boxes for:

o   Remediate noncompliant rules when supported

o   Allow remediation outside the maintenance window

 

Has anyone else seen this behavior? How do you ensure that remediation
scripts are executed in Compliance Settings?

 

Cheers,

Trevor Sullivan

Microsoft PowerShell MVP

 



Reply via email to