I am looking to search for a specific string in all text files in all directories using power shell : I am new to power shell. 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.

Select-String -Path D:\FLAG_FILES\*.*  -pattern "admin" |Out-File D:\logs\FLAG_FILES.txt

Appreciate your time.

Regards,
Naresh