Build a simple ConfigMgr report with PowerShell

If it’s more than one person working with Configuration Manager (yeah like you do it all by yourself ;).
It can be hard to keep up, a new application added on Monday, a Package modified on Tuesday and 3 new Configuration Items on Friday.

This script will hopefully makes it a little bit easier to keep up.

The Basics

1. First we need to gather some information

2. If something is returned, add it to a text file with a little html formatting

3. Send it as a nicely html formatted email.

I run this script (scheduled task) every Monday morning, perfect reading while enjoying  my morning coffee 🙂

The Script

Happy PowerReporting Andreas 🙂

5 thoughts on “Build a simple ConfigMgr report with PowerShell

  • June 25, 2014 at 04:54

    Hi, thanks for this post! How long should this script normally take to run? I’ve configured it and I can see that its created the txt file but nothing has been written to it yet (Running SCCM 2012 R2 CU1 with SQL on box with latest version of PowerShell)

  • June 25, 2014 at 04:55

    Never mind, it has finished, took around 3 minutes. Should have waited longer!

  • July 7, 2014 at 08:38

    yeah it’s take some time to run. For me it’s a bit over 2 minutes.
    It would go a hole lotta a faster to call WMI directly instead of using the PowerShell module.
    But this way was easier =)

  • August 11, 2016 at 13:24

    Top post. great script! works a treat!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.