I'm running the following command:
Import-Csv .\list.csv -Encoding UTF8 -Header "Users"
which is a list basically with names, users and a attribute
Users
-----
Bob;User1;T
Max;User2;
Jordon:User3;T
Angel;User4;T
As you can see there are 3 users with a ;T. I should be able to able to search through that line (string) and if I find that ;T I'll do something. If I don't find that ;T I'll do something else.
What is the best way to do it?
-Delimiter ";" -Header Name,User,Attributeand thenif($_.Attribute -ne "T"){ do-somethingelse }?