Relative Content

Tag Archive for powershellcsv

How do I get PowerShell to create a new CSV file?

I’m currently trying to figure out how to get PowerShell to create a new CSV file, and append information to the CSV file it creates. I’m doing this on a test script right now just to try and figure out the functionality, but I’m stuck. Here’s what I have currently (For privacy, full file path is reduced to “File Path”):

Exporting CSV results to two different paths

I have a PowerShell script that I would like to export to two different CSV files. One of them also includes an additional parameter to append. I’ve tried this and it does create a second CSV, but it’s blank. Can someone please help?

How to get PowerShell to change cell value in CSV

I’m trying to make PowerShell interact with a CSV file and update it’s values. There are four columns in the CSV: “Object Name”, “Times Flagged”, “Date Last Flagged”, and “Notes” (the last one intended to be manual entry/editing only). Currently, the script gets a list of object names from a txt file, and compares them to all the values under “Object Name”, and is able to figure out which objects already exist on the CSV and which do not.

How to get PowerShell to compare data from CSV

I’m currently working on a script that will take object names from a txt file, compare them to entries in a CSV file, ID which objects from the txt already have entries in the CSV, update existing entries, and add new ones. The CSV has four columns: “Object Name”, “Times Flagged”, “Date Last Flagged”, and “Notes”. The last one is meant for manual entry, so I only intend for the script to touch the other three.