VMware Cloud Community
mike-p
Enthusiast
Enthusiast
Jump to solution

Object Relation List

I want to create a list of DataCenters, Clusters, Resource Pools and their connected  VirtualPortGroups and Datastores.

Does anybody have a script which fits ?

Reply
0 Kudos
21 Replies
LucD
Leadership
Leadership
Jump to solution

The New-VIProperty adds a new property of type CodeProperty to the PowerCLI object types you select.

The definitions done with the New-VIProperty cmdlet stay active during the complete session.

When you work interactively from the PowerCLI prompt, the PowerShell prompt or a GUI like PowerGui, you could consider placing these New-VIProperty cmdlets in one of the profile files.

If you start you scripts with, for example, the Windows Scheduler, you will have to include the New-VIProperty cmdlet in the script.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
mike-p
Enthusiast
Enthusiast
Jump to solution

Now i try to etend the script to display the folders where DataCenters and clusters can reside. The problem is that the get-folder cmdlet lists all known folders of a server. I only need the organisational units down to the clusters.

Reply
0 Kudos