One Response to Working with vCloud Metadata in PowerCLI – Part 2

  1. Peter Benz says:

    The function GEtCIMetaData replies only the value. Replacing Key -ExpandProperty TypedValue by @{N=”Value”;E={$_.TypedValue.Value} seems to work at least on single VM object like (get-civm -name MyComputer).ExtensionData.GetMetadata().MetadataEntry |Select Key, @{N=”Type”;E={$_.TypedValue.GetType().Name}},
                        @{N=”Visibility”;E={ if ($_.Domain.Visibility) { $_.Domain.Visibility } else { “General” }}}, @{N=”Value”;E={$_.TypedValue.Value}}

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × 2 =