If you are using PowerShell 3.0 or 4.0 then Export-csv gets an -Append parameter that will allow you to add records to a CSV file. The kicker is in your requirement to not add a job that already exists.
I suspect that you'll need to read the CSV file into an array; get the current print jobs; add them to the array; select for unique jobs and export the CSV.
From the list of properties you are selecting what are you going to use to uniquely identify a job?
The topic ‘Get-PrintJob appending to existing CSV’ is closed to new replies.