<p>In PowerShell I'm reading in a text file. I'm then doing a Foreach-Object over the text file and am only interested in the lines that do NOT contain strings that are in <code>$arrayOfStringsNotInterestedIn</code>.</p>

<p>What is the syntax for this?</p>

<pre><code>   Get-Content $filename | Foreach-Object {$_}
</code></pre>

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) { $) }
```
```