Mohammed Nawaz Kazi’s Post

View profile for Mohammed Nawaz Kazi, graphic

Tech-lead Trafigura | SCCM | Intune | Automation | SQL | SSRS Reporting.

🔧 #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

  • text
Suhail Ahmad Ansari

Serving Notice Period | MECM | Intune | Patch Management | SQL | SCCM | AWS

3w

pls share the script

Like
Reply
Nand Chaudhary

| SCCM | | Intune| | Azure | Tanium | Vulnerability Management | Co - Management |

3w

Please share the script

Like
Reply
Nashid Wasta

Building Secure, Scalable Solutions | ITIL | ISO 27001 | Microsoft Certified | AWS | Cloud

3w

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.

Like
Reply
Ranjeet Bhargava ☁

Software Delivery Lead @ YourNXT Technologies LLP | Strategic Cloud Development for SW Projects- Disciplined Agile Practitioner -Tech Lead - DevOps SAaaS PaaS, IaaS, Data Orchestration Platform .Net Developer-IA

3w

Good point! Keep it up

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics