|
Written by Scott Herold
|
|
Tuesday, 27 January 2009 20:00 |
|
Every once in a while I see something that just makes me stop and say "Wow". Alan Renouf (also famous from the Twit list PowerShell script) has done it again with a PowerShell script that uses Visio COM calls to construct a Visio diagram of a Virtual Infrastructure. The first thing I noticed that I was privileged enough to have a number my Visio stencils included with this script. I've taken the time to update my Visio stencil with updated graphics and with proper font sizing. I should be able to release this super awesome new set once it clears my legal department, which I am hoping will be this week.
Not to steal any of Alan's thunder, I want to point to his original blog post. I did need to modify one line of code to get the layout to properly map my VMs to their parent host. I anticipate Alan making this change in short order, but for those interested:
Simply change line 93 From: ForEach ($VM in (Get-vmhost $VMHost | get-vm))  To: ForEach ($VM in (Get-vmhost $VMHost | get-vm -NoRecursion))  I've also included a screenshot of what my diagram looks like when I use my updated Stencil set. I still need to work on text box sizing, but that's for another day.
Next up, of course, is taking Alan's script and porting it into a PowerGUI action. While I'm at it, I'm also going to take a stab at mapping Network and Storage as well.
Trackback(0)
|