Powershell – searching content of files
Posted in .NET, Powershell on Aug 31st, 2009
There is a way to use Powershell to search the contents of a file. This method will not use the Windows index so it will be slow, but it does work. get-childitem c:\users\ -filter *.txt -recurse | select-string -list -pattern "yourtext" | foreach {$_.Path} Finding files get-childitem: Get the children for a container. In this [...]