🔧 #PowerShell #SCCM #ConfigurationManager #Automation Just crafted this powerful little script that's making waves in our ConfigMgr environment! 💻This automation gem does two critical tasks in one go: • Triggers evaluation of specific Configuration Baselines 🎯 • Automatically runs a Hardware Inventory scan ⚡Why is this a game-changer? 🤔 It helps ensure your compliance data is always fresh and accurate, perfect for those crucial compliance reports and audits. No more waiting for the next scheduled scan or manual intervention!The best part? It's super flexible—just modify the filter to target any baseline you need to evaluate. Perfect for: • Post-deployment validation • Troubleshooting compliance issues • Quick environment health checks Script : # Retrieve the desired configuration objects matching the filter $Baselines = Get-WmiObject -Namespace root\ccm\dcm -Class SMS_DesiredConfiguration -Filter "DisplayName LIKE 'BaselineName%'" # Loop through each baseline and trigger evaluation foreach ($Baseline in $Baselines) { # Trigger the evaluation for each baseline $WmiClass = [wmiclass]"\\.\root\ccm\dcm:SMS_DesiredConfiguration" $WmiClass.TriggerEvaluation($Baseline.Name, $Baseline.Version) } • Automated remediation workflows🎉 Small script, big impact! Feel free to grab, modify, and use in your environment.#TechAutomation #SystemsManagement #ITOps #Microsoft #PowerShellCommunity #ConfigMgr #Technology #Innovation #Tech #Programming #ITOps #Management #Software #Intune
Please share the script
Great script! However, I do have some concerns about automating the evaluation of configuration baselines without human intervention. What if there are unexpected issues or conflicts that arise during the evaluation process? I think it's important to have a human review and approve any changes to compliance data to ensure accuracy and avoid potential problems down the line.
Good point! Keep it up
Serving Notice Period | MECM | Intune | Patch Management | SQL | SCCM | AWS
3wpls share the script