Quantcast
Channel: GARYTOWN ConfigMgr Blog
Viewing all articles
Browse latest Browse all 206

Run Scripts: Trigger Baseline Evaluation

$
0
0

This Script will trigger the Baseline (Based on the Baseline Name input) then report compliance and if non-compliant, what rule was non-compliant. In this example, I'm triggering the baseline "WaaS Pre-Assessment".

The script does several things..

  • Triggers Machine Policy & Waits 2 Minutes
  • Gets the Baseline Information from WMI
  • If the Baseline is in WMI, it triggers and Evaluation & Waits 2 minutes
  • If Baseline = Complaint, Reports Complaint
  • If Baseline = Non-Compliant, triggers Machine Policy & Baseline Eval and waits 5 minutes
  • Checks again and reports Status

Script:

View the code on Gist.

Posted on GARYTOWN.COM


Viewing all articles
Browse latest Browse all 206

Trending Articles