mardi 23 juin 2015

Powershell to display output with multiple values

Get-EC2Instance |%{ $.RunningInstance } | select-object InstanceId,LaunchTime,@{Name='Value'; Expression={$.Tag.Value} }, @{Name='Key'; Expression={$_.Tag.Key} }

enter image description here

Each Value and Key have multiple values as you can see in the screenshot. How to rewrite the code so the output can look like:

enter image description here




Aucun commentaire:

Enregistrer un commentaire