PowerShell for Admins

Charts in PowerShell-Generated Reports

Don Jones
2 min read
Share:

So, as you may know, I have an ongoing hobby project called _Creating HTML Reports in PowerShell. _I’m working on an update for next year, and one of the things I’ve been looking at are embedded charts within the report.
Problem is, I don’t know what people would actually chart. Now… I’m going to ask you for ideas, but you need to read this whole post before you go popping a comment in. Because there are some restrictions.
First, I’m  not talking about historical data or trend reports . Those require a data store of historical data. If you’re not using SQL Server for that (even free SQL Express), learn how. Excel is  not your trend database, no matter how little learning it requires (and I bet if you added up all the time you’ve spent becoming an Excel jockey, you’d be shocked). Once you’ve got the data in SQL (even Express), you can use SQL Server Reporting Services (SSRS) to generate truly kick-butt reports with very little effort. Reports which can be scheduled and e-mailed. Truly, folks, this is worth spending time on - and I may make that my next ebook project.
**Second, **don’t tell me “disk space.” I know that one. Pie and stacked bar charts showing size/free space are a great idea. Got it. Anything else?
**Third, **I’m not talking about performance charts. PerfMon does those, and also, see my first point. PowerShell is not a performance monitoring tool. Operations Manager is. Oh, and it dumps data into SQL Server and you can use SSRS to report on it. If your company needs historical performance reports (and most probably do) and is to cheap to get you a real monitoring solution, consider taking drastic measures. I’m not suggesting you put Ex-Lax in the boss’ coffee every time he asks you to re-create OpsMan on your own. He’d deserve it, and it might help, but I’m not suggesting it.
In keeping with point 3, that means I don’t want suggestions like “charts showing network throughput.” That’s performance. I’m not suggesting such a thing wouldn’t be useful, because I know it would be. I’m saying it’s out of scope for this particular project. If you give me in-scope suggestions, I’ll build you a tool. Fire off out-of-scope stuff and I’m just going to go build a kegerator for my beer instead.
SO… given those restrictions, what sort of data could you query from a computer (say, using WMI/CIM or something) that you’d want displayed in chart form? Anything?

Related Articles

Sep 15, 2023

PowerShell Escape Room

PowerShell Escape Room by Michiel Hamers by Michiel Hamers https://about.me/michielhamers/ Why on earth you want to create an Escape Room with PowerShell as backend? I’ve always been a fan of escape rooms, so I decided to create my own for my kids. I wanted to make it something that would be challenging and fun for them, but also educational. I decided to use PowerShell as the backend for the escape room, as I’m a PowerShell developer and I thought it would be a great way to learn more about the language.

Sep 15, 2023

Microsoft Graph PowerShell Module: Getting Started Guide

Microsoft Graph PowerShell Module: Getting Started Guide by Jeff Brown Microsoft is retiring the Azure AD Graph API sometime after June 30, 2023 (announcement). This retirement includes the Azure AD PowerShell module. In its place, Microsoft has released the Microsoft Graph PowerShell module. The Microsoft Graph PowerShell module is the next-generation way of managing Microsoft cloud services using PowerShell. If you have used MSOnline or Azure AD PowerShell in the past, you’ll need to read on to learn about this new module.

Oct 8, 2021

ICYMI: PowerShell Week of 08-October-2021

Topics include VMWare, Windows 11, Web Reports and more… Special thanks to Robin Dadswell, Prasoon Karunan V, Kiran Patnayakuni and Kevin Laux How to gather your vCenter inventory data with this VMware PowerShell script by Scott Matteson on 7th October Inventory reports are a common request when administering a VMware vCenter environment. Learn how this VMware PowerShell script can make such requests quick and easy Building a Web Report in PowerShell, use the -Force Luke by Chris Noring on 8th October