For a hash table containing heterogeneous data, such as:
$items = @{ a = @{a1 = "A1"; a2 = "A2"; a3 = "A3" } b = 1234 c = @{c1 = "C1"; c2 = "C2"; c3 = "C3" } d = [DateTime]::Now }
When I try to display the content using the following:
$items | Format-Table -AutoSize
Conclusion:
Name Value
But how can I expand the contents of nested hash tables so that I can see key-value pairs, such as:
Name Value
The exact format for displaying nested key-value pairs is not very critical, I just want to see them.
source share