Admin-Ahead Community
Windows => General Windows => Topic started by: Aby on February 28, 2014, 02:50:46 am
-
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
----