PowerShell - Find Text in File Contents

We are looking for a sample "rhino" in the contents of all files in the C:\Windows\System32\Drivers directory. The found results are displayed with the path to the file in which the sample was found, the line number where it was found, and the line itself.

powershell "Get-ChildItem -Path C:\Windows\System32\Drivers -recurse | Select-String -Pattern "rhino" | fl"

Author: admin