VMware Cloud Community
sp93
Contributor
Contributor
Jump to solution

Generating a Report based on Resource Pool location

Hey Everyone,

I'm very new to powershell, so forgive me if this is easy....however....

I want to generate a .csv with the following information:

VMname

VMDK file size

server location and resource pool location making sure to report correctly nested Resource Pools

I have attempted this and have had limited success. I have never been able to combine all needs into one output or have been able to handle the nested Resource Pools......

Thanks in advance

Tags (1)
Reply
0 Kudos
21 Replies
LucD
Leadership
Leadership
Jump to solution

Luckily the HardDiskImpl contains a property, called Filename, that contains the datastore.

With a bit of string manipulation we can extract the datastore and include it in the report.


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

Reply
0 Kudos
GuyS
Contributor
Contributor
Jump to solution

LucD

Thanks for your kindness and support

Guy

Reply
0 Kudos