Hi,
Our environment has a mixture of hosts on different build numbers. I'm trying to write a script that will show a count of how many hosts are running each build number. That way I can export it to Excel and make a pie graph to show the spread of versions.
Using the ImportExcel module, I can create a pie graph but it counts every single result as a new value to graph
This code "PieChart -title "Test" (Get-VMHost | Select Version, Build)" generates a graph like below
If I could spit out counts like in the table below, I'd be able to create a Pie Chart like this:
ESXi Build | Count |
6.0.0-4600944 | 10 |
6.0.0-5050593 | 3 |
6.0.0-5224934 | 5 |
6.0.0-5572656 | 4 |
6.0.0-6765062 | 2 |
6.0.0-6921384 | 3 |
6.0.0-7504637 | 64 |
Thoughts?