import-csv how to make powershell ignore a line in a csv file if a column contains a certain value RRS feed

  • Question

  • Basically I got a very basic script that uses a csv file to input values needed to remove people from a distro list. That part is working fine. I'd like to add to it's functionality so it can look at values in a certain column, and if any of those certain values are present, I want powershell to skip that line and not process it. For instance I have a column in the csv called Group. If I have a listing under Group that says ABC I want the script to skip that line and not try to process it. What could I insert into the script to acheive this?

    Tuesday, January 13, 2015 5:08 AM


All replies