Comparing two .csv files and outputting results to a .csv file.

I am trying to find the differences between two .csv files from a compliance scan report export and have the output go into another .csv file. The goal is to be able to use this script to see if there are any new plugin that have been added/removed since the previous scan. This is what I have so far https://pastebin.com/qppqQDSd It seems to pull the data but does not keep the formatting making it very difficult to read. If I add a -passthru on the last line in front of Compare-Object it keeps the formatting of the other two .csv files but does not add the data. I currently have the two .csv files on my desktop in the same folder. I run the script while having that location as my present working directory.

submitted by /u/chrisjames1225
[link] [comments]

Leave a Reply