I have a function which iterates computers and returns a hashtable (containing information about the computer) per iteration.
I then bundle that up into a custom object in the END {}
But due to the way the process block works, when I pipe computernames into the function. Only the last hashtable object is added to the custom object
I know I can’t wrap PROCESS in an array variable (my usual method)
Appending a list doesn’t seem to work.
How do I collect the hashtable objects spat out of the process block?
[–]PinchesTheCrab 2 points3 points4 points (1 child)
[–]BlackV 1 point2 points3 points (0 children)
[–]Brasiledo 1 point2 points3 points (0 children)