I'm new to PowerShell and I'm trying to write a script that will help me parse large amounts of user session statistics. I have 2 CSVs:
currentmonth.csv
UserName;Hours
User1;0,5
User2;120
User3;1
... and ...
previousmonth.csv
UserName;Hours
User1;2
User2;100
I want to compare currentmonth.csv against previousmonth.csv and if an user (ex. User3) is not present in CSV for the previous month, give value for hours as "0" and save the processed data in a new CSV (ex. parsedmonth.csv).
Desired output:
UserName;Hours
User1;0,5
User2;120
User3;0
What would be the simplest way to achieve this?