I am trying to find all files, which does not contains a selected string. Find files which contains is easy:
gci | select-string \"something\"
As mentionend in How do I output lines that do not match 'this_string' using Get-Content and Select-String in PowerShell?
Select-String has the NotMatch parameter.
NotMatch
So you could use it:
gci | Select-String -notmatch "something"