Is it possible to use Invoke-Command to multiple computers, and then output each computer’s results into their own CSV (that does not already exist)? Better yet, one file with one tab per computer containing the results?
I could accomplish this using a foreach loop but that would be quite inefficient compared to the parallelism of Invoke-Command.
I’ve been searching the forum but haven’t found anything yet. Thank you for any input.
Objects returned from invoke-command are returned with extra properties, one of which has the computer name. If you capture the results and run that thru group-object on that computer name property, you can loop over the groups and create a csv file for each computer. Creating an excel file can be done, but I’m not experienced with it.