Summery

Here’s a list of commands to use if you need to search for something on Windows.

Commands

PowerShell
Get-ChildItem -Path C:\ -Filter "*password.txt*" -File -Recurse -ErrorAction SilentlyContinue - Search recursivly for files with PowerShell.
Select-String -Path C:\Users\dave\out.txt -Pattern "password" -Context 10,10 - Search inside a file with PowerShell.
(You can additionally add Context 10,10 to add additional lines around your searched text.)
Get-ChildItem C:\xampp -Recurse -File | Select-String "password" - Recursively search inside a file with PowerShell.

CMD
dir C:\Users\ /s /b /a-d 2>nul - Search recursivly for files with CMD.
findstr /i /n "password" C:\Users\dave\*.txt - Search inside a file with CMD.
findstr /s /i /n "password" C:\Users\dave\*.* - Recursively search inside a file with CMD.