Find string in all files in folders using PowerShell
The following PowerShell command will search the “C:\path” folder and all files within it (including sub-folders) for the string “find me”. It will print a list of the file paths where the string was found.
Get-ChildItem “C:\path” -recurse | Select-String -pattern “find me” | group path | select name
----