0

I need to find certain files at a SMB share containing a specific text string.

How it could be done with the search function in Windows 10?

I would not prefer the idea of indexing the files as there are a lot of them.

Example:

Search \SHARE\ for *.xml containing "Keyword"

0
findstr /m "Keyword" \SHARE\*.xml 

Keep the quotes. If you want multiple words in the same document, separate them with a space inside the quotes. You would do this from the command prompt. Most likely you would put \\SHARE\C$\Users\Admin\Documents\*.xml or something like that.

If the share requires a username and password, make sure you open it in Explorer first and enter that info.

  • /s for sub folders /I if you do not want it to be CaSe SenSitivE – Guy Cohen Nov 15 '18 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.