Diagramming VMware Environment

Our VMware environment consist of one vCenter server and 110 ESXi hosts.  I am looking for a means to nicly diagram the environment using Visio to it can be used to present to management. I have the following Powercli script http://virtualize-automate.com/wp/index.php/2016/01/03/generate-vcenter-network-diagram-visio-using-powercli/

but it errors out withe the following:
You cannot call a method on a null-valued expression.
At C:\SCripts\EnvironmentDiagram.ps1:57 char:1
+ $datastores=$stnobj1.Masters.item("Disks 1")

Can another recommend a scirpt or program that works well to do what I am looking to do. I am not looking forward to doing this by hand
LVL 20
compdigit44Asked:
Who is Participating?
 
compdigit44Author Commented:
Thank you for the feedback. vCenter is 6.0 Update 2 running on a Windows 2012 R2 platform.
0
 
compdigit44Author Commented:
This link seemed to work better, now I just need to work on the sizing of the objects...

https://wuchikin.wordpress.com/2016/07/23/draw-visio-diagram-by-using-vmware-powercli/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.