I have written a script to gather information from multiple servers. These include CSVs for Services, Applications, Users etc.
Although I can run a Compare-Object on these CSVs, the output isn’t great.
So I would like to compare the Services CSV on 2 servers and put into one table
Name StartMode(server1) StartMode(Server2) State(Server1) State(Server2) Status(Server1) Status(Server2)
AppInfo Manual Auto Stopped Running OK OK
Service2 Manual Auto Stopped Running OK OK
The troubles I am running into are, my headers are different per CSV and I can’t get all the columns on one line. I end up with AppInfo on two lines with the Server1 on one and Server2 on the second.
Any ideas would be great please. It needs to be dynamic to accept all headers from different CSVs.