Creating Tables in Powershell


Guys I’ve got a script that queries services in remote computers. It runs 2 nested foreach loops, 1 for the computer list and the internal one for the services list. I want to capture the output of the process in a 2-dimensional array.

I already obtained the data and presented it on the console but have failed to store it in a multicolumn array.
Hash tables can only accept 2 columns.


Try This one:

Using WMI because Get-Service missing the StartupMode


Creating Tables in Powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply