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
Everything is possible with PowerShell
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
We have Host Type defined field named "Owner".
We don't need all of them.
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