I have an array or PSCustomObject called: $results = @()
I have a nested hash table called: $allResults = @{}
$results |ft
, shows this in console:
Brokering Name WriteCacheSize dFreeSpace (and more...)
--------- ---- -------------- ----------
N/A server0001 0,004 22,83
N/A server0002 0,004 21,86
$allresults |ft
shows this:
Name Value
---- ----
server0001 {SCOMStatus, PVSServer, RegistrationState, ServerLoad...}
server0001 {SCOMStatus, PVSServer, RegistrationState, ServerLoad...}
The name is in common in both $. There should be a way to add the values in $results
to $allresults
, but I don't know how to do it.
I want everything in the hash nested table. How can I add the values in the $results
to the $allresults
. The goal is having a nested table with every value.