SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the -notmatch operator to get the lines that don't have the characters you are interested in.
Get-Content $FileName | foreach-object { if ($_ -notmatch $arrayofStringsNotInterestedIn) { $) }