VMware Cloud Community
ron9999
Contributor
Contributor
Jump to solution

VM Report

Hello.

I have a script original created by LucD.

Is it possible to implement additional information like CustomFields of the ESX Hosts?

Thank you.

Regards

ron9999

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Updated script attached.

I used the PowerCLI 4.1 Extensiondata property instead of the Get-View.

And the code to compile each row is now stored in a variable and executed against each guest and template.

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Everything is possible with PowerShell Smiley Wink

Are you looking to include a specific custom attribute ? Or all of them ?

____________

Blog: LucD notes

Twitter: lucd22


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

0 Kudos
ron9999
Contributor
Contributor
Jump to solution

We have Host Type defined field named "Owner".

We don't need all of them.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Updated script attached.

I used the PowerCLI 4.1 Extensiondata property instead of the Get-View.

And the code to compile each row is now stored in a variable and executed against each guest and template.

____________

Blog: LucD notes

Twitter: lucd22


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

0 Kudos