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 21
compdigit44Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.