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
Posted on GARYTOWN.COM