title: Search for a specific string in all text files in all directories
body: <p>I am new to PowerShell. I am looking to search for a specific string in all text files in all directories. Here is my script but it is not searching sub directories.</p>
  
  <pre><code>Select-String -Path D:\FLAG_FILES\*.*  -Pattern "admin" | Out-File D:\logs\FLAG_FILES.txt
  </code></pre>