- How to Search Through File Contents on Windows 10
- Turn on Option To Search Through File Contents
- Search Through File Contents in File Explorer
- 32 Comments
- How to Fix File Explorer Search Not Working in Windows 10
- Fix-1 Modify File Explorer options-
- Fix 2 – via Powershell
- Fix 3 – Rebuild Search Index
- Fix 4 – Make sure Windows Search Service is Running
- Fix 5 – End Cortana Process
- Fix 6 – Install KB4532695 update to fix this
- Fix 7- Add System permission to a folder
- Fix 8 – Troubleshoot Search and Indexing
- Fix 9 – Default Apps by protocol
- Related Posts:
- Reader Interactions
- Comments
How to Search Through File Contents on Windows 10
Windows comes with a robust search engine that allows you to find apps, search the Windows Store and the web, and find files on your PC. The search engine in Windows 7 used to find content not just in file names, but also in the contents of files. You could even search the contents of .zip files in Windows 7.
Most people are unaware that this functionality still exists in Windows 10. It’s just not obvious how to enable it. Today we’ll show you how to enable searching through file contents in Windows 10.
Turn on Option To Search Through File Contents
Click the Cortana or Search button or box on the Taskbar and type “indexing options.” Then, click on Indexing Options under Best match.
On the Indexing Options dialog box, click Advanced.
Click the File Types tab on the Advanced Options dialog box. By default, all the extensions are selected, and that’s what we want. This will allow Windows to search through all the types of files on your hard drive.
Select the Index Properties and File Contents option in the How should this file be indexed section. Then, click OK.
A Rebuild Index dialog box displays, warning you that rebuilding the index might take a long time. That means that all the contents of your hard drive might not be searched until the indexing process is finished. Click OK.
Click Close on the Indexing Options dialog box.
Search Through File Contents in File Explorer
Now, when you search for text in File Explorer, Windows will search the contents of files for the text in addition to searching the file names.
Remember, if you don’t get results for your search right away, you may have to wait for the folders and files to be indexed.
What methods do you use to search the contents of files in Windows? Do you use any third-party apps to search the contents of files? Let us know your thoughts and experiences in the comments.
32 Comments
Well THANK YOU Lori Kaufman!! Not being able to search contents has been a pain.
I agree – this page was very helpful!
I just need to search a project folder without having to enable indexing on all system. Is Microsoft incapable to just add something simple as a grep command ? The Find in files option in previous versions of Windows was good enough for the job. But as usual when something is good for the users MS kills it. No brain- No Pain – Big Gain for MS.
Thanks. Turn this way down to just a few boxes back when was having h/w issues in Windows 8 & then into 10. Now with more powerful & stable gear it’s time to click these back on. Will help with the video files as well as within .docx & photo, art files.
Microsoft never really promoted the search function well enough, it is fundamental to the way the O/S’s since Windows 7 are geared towards using the search function rather than go trawling through the file explorer tree, I am fairly confident they are visionary in this approach as in the future computers will not rely so heavily on computing, but will have all possible answers pre-loaded in the quantum field and the user would simply feed in the quest and the computer would then search for the single correct answer.
Quite the opposite in fact. Simply having answers pre-loaded does not mean anything for computing speed. The very action of searching, or to be more precise sorting the information in more feasible manner, still requires both computing and time. This has not changed, even with the advent of Quantum Computing. Google operates in the same manner and is a clear example of what is at the forefront, they have machines already performing the search beforehand. Yet what the user inputs is really the search engine sorting out the information in a way that seems the most relevant to the user.
Working in this field of search/sort algorithms, I do not think that we will see any new innovations on this subject in decades to come, sadly enough.
This is honestly the first time that I see this feature on Windows. Good job.
Thank you! Is there a way to print the contents of a folder (a list of all the files in a file)? I used to do this on my Atari computer and it was quite handy at times.
I have got File – Home – Share – View but not Search on the toolbar.
What am I doing wrong.
Me also. I don’t have the Search tab. Only File – Home – Share – View
Hi Bill and Dolly,
Not to worry! As soon as you enter anything in the search boxes located below the toolbar, the Search tab magically appears!
For an example, look at the last picture above and you will see the search boxes labeled 1 and 2. Type anything in the #2 box on your computer and you will see the search tab show up.
Hope that helps.
How do I force Windows File Explorer to display OpenOffice files on searching a term? I can search “.odt” and get results, but when I search a directory that contains such OpenOffice files, I get no results, other than old doc, docx, adobe and so on.
I tried to search the way you describe above and got .odt results no matter how I searched. I used phrases from .odt documents and I tried searching just .odt and had no problem.
So, I am wondering if you followed the steps laid out in this post to open search to titles and contents of documents? If not, then I would do that first.
If you have already done that, I would suggest going to the page shown above named Advanced Options and on the File Types tab, scroll down the list and make sure the odt file type is checked. If not, check the box, wait for indexing (takes a while) is complete, then try your search again.
Hope this helps you!
Thanks, I had discovered that. Now I am annoyed that details | content shows a tiny thumbnail, not the nice full preview I get with pdf files.
The indexing does not seem to work at all for file content even in indexed locations.
The disk I am searching has around 55GB data. Where Google desktop would have given a result as I typed, Win10 search either does not find at all or takes several hours.
Win 10 search takes as input only a word or phrase, not several key words.
But, I do not know of any tool that will do so either. Any help will be appreciated
Use Windows Commander rather than W’10’s search engine. It is convenience and fast with great configuration.
I used to use the free word perfect editor. It worked just like word perfect but worked at a text file level. I could quickly search thru Windows MSWord files for context content. Mainly speaches so I could do a quick analysis of a proposed speech for the main concepts of the proposed speech and advise on what the official line had been on key words.
It was called WEd.exe
see it at
https://sites.google.com/site/texteditors/Home/files/wp_ed.zip?attredirects=0
wp_ed.zip
I would run it in a command window. F3 gives you the menu, you set the folder you want to search and specify the content key words you want to find and it would list all the files then you would just do f2 to search thru for the key words. I could do this faster than any two people in my office. Now I would just use findstr in a batch file.
So, if your IT department has any brains at all, you don’t have Administrator Rights on your own PC (preventing you from installing unapproved software – software that might be free for home use but licensing requirements if used for business, software that might have a virus, software that might interfere with the software provided by the company, etc.). You need Admin rights to click on “Advanced” in “Indexing Options”. Is there any other way to search through file contents, i.e. something you don’t need Admin rights for?
Third party software like ultra search
I had been so disappointed all these years with Windows 10 that I couldn’t do a phrase search. I finally decided to look it up…I’m SOoo glad I found you to clear this up!
I have file with dashes and numbers in the name. No searches appear after a begin typing the dash and first 2 digits:
During the last 3-4 months there has been a drastic (and unwelcome) change to the search feature. I often searched for content inside many types of files with no problems. Now I have nothing but problems. I found the procedure you outline above on my own and hoped things would change, but no joy. I experience many false positives and false negatives. (I.e., files reported by search do NOW contain the search term, and failure to find files I KNOW are there. Additionally, the search is returned in some kind of virtual screen that has no apparent connection to the rest of File Explorer, i.e., I cannot get back to the folder I was searching. Back buttons don’t work, ESC doesn’t work, deleting the search term (my former default) doesn’t work. I can only conclude that someone at MS has royally screwed up this feature. I will have to find a utility to search inside files like I used to use years ago.
Search Note is an impressive way to search content inside your shared documents.
Why don’t you give it a try? Search note is available on github.
https://github.com/scorpionit01/SearchNote
03 Aug 2020: Followed all steps successfully…EXCEPT A WORKING SEARCH OF CONTENTS. Added the php extension, allowed it to complete indexing, did a cold boot, used the indexing troubleshooter (which said Windows Search wasn’t working, then said it fixed the problem). Still finds two (pdf) files which do not have the string and none that do, same as before.
This information is quite helpful to me. I was finding hard time searching and locating file names. The only results I was getting ended with folder names. Thank you.
24 August 2020. I followed these steps long ago, and have never been able to search file content in W-10. Tried it again today. A search that should have turned up about 200 or so documents in a particular client’s folder showed 83.
No, it’s not an ordinary word.
I also noted that three Word documents which were done this morning (and obviously have not yet been indexed), which had the word in the body, showed up on the list. The other 80 had the word in the file name. But I know for a fact those 200+ documents exist. And if the search had functioned properly I would have been able to figure out which of those 200 was the one I need to find.
All of which says to me that once my system has indexed something, despite the “index file name/contents” being clicked, a search of the content isn’t possible.
Make sure that windows search service enabled.
This is a very good hint. I usually resort to Bash tools on command line but this is much more convenient. Thanks.
I just compared the (right-click on filename)Properties for SEARCH.TXT and SEARCH_SUB.TXT. I clicked on “Advanced” in the Properties window under the General tab, There is a box that says “Allow this file to have contents indexed in addition to other file properties”. SEARCH.TXT had it checked, while it was unchecked for SEARCH_SUB.TXT. This kind of garbage is why MS can drive users crazy. Was it an oversight or did some exec realize that if a User had a big tree of large files under Documents, that searching would bog down. Now the question: how do I batch set this attribute for my many 1000”s of TXT, DOC, PDF, XLS, etc files? And dare I do it? Maybe it will make File Explorer searches into monsters.
Important actions preceded my previous post, so read this first. I created a new TXT file I called SEARCH.TXT in my Documents folder and added the text “bbbb”. After typing bbbb in File Explorer’s search window, Explorer found the SEARCH.TXT file. I tried the same procedure creating a SEARCH_SUB.TXT file in a subfolder I’ll call Documents\Subfold. But now the a search for bbbb failed and only came up with SEARCH.TXT, but not SEARCH_SUB.TXT (both files were identical except for where they resided). I moved SEARCH.TXT into Documents\Sobfold. The search for bbbb still found SEARCH.TXT in Documents\Subfold. I created an identical SEARCH.TXT in the special, MS pre-loaded folders in my User file like Music, Downloads, Pictures and Videos. The search for bbbb worked in these subfolders! I moved SEARCH_SUB.TXT from its subfolder into the Documents folder and opened and resaved it. Still not discoverable.
Turns out there’s a “Contents Searchability” Attribute that is set when files are created in these special pre-loaded folders (Documents, Music,…), but is not set when created in a subfolder (at least not on my Windows 10 version).
One nice free tool I forgot to mention is called “Agent Ransack”; yeah, it’s legit, free for the free version. There is a pro version that honestly, I never felt the need for.
I installed and on the desktop shortcut, I added a hot-key combo “ctrl-alt-shift-f” and off it goes.
But I must say that when I’m already looking stuff in Explorer, I rather use the built-in and search from there.
How to Fix File Explorer Search Not Working in Windows 10
October 4, 2020 By Admin
Is Search box of File Explorer not working on your computer? If you are facing this issue at your end, you are not alone. Some Windows 10 users are also complaining about similar kind of issue at their end. Follow the fixes of this article and the problem will be solved quickly. But before going ahead for the main solutions, check out these simpler workarounds and check if they works out for you or not.
Workarounds–
1. Press “Esc” key when the Search box is not responding on your computer. It will offer some temporarily fix for the problem.
2. Reboot your computer and check if it helps or not.
3. Check if any Windows Update is pending or not. If any of the updates are pending on your computer, update your system, check if it is working or not.
If any of these workarounds didn’t work out for you, go for these solutions-
Fix-1 Modify File Explorer options-
Modifying File Explorer Options on your computer may solve this issue.
1. Press Windows key+R to launch Run window on your computer. Now, type or copy-paste “control.exe folders” in Run window and then hit Enter. File Explorer Options window will be opened.
2. In File Explorer Options window, go to “View” tab and then toggle the option “Launch folder windows in a separate process“. (You can check/ uncheck the option.)
3. Click on “Apply” and “OK” to save the changes.
Relaunch File Explorer on your computer. After opening File Explorer window, type to search something in File Explorer and check if the error is still there or not. Your problem should be solved.
Fix 2 – via Powershell
1. Press Windows key + R key together to open RUN.
2. Write powershell in it .
3. Press CTRL + Shift + Esc keys together from your keyboard to open elevated powershell window.
4. Write the following command given below and hit enter key.
Wait for some time to get it executed fully.
Fix 3 – Rebuild Search Index
1. Press Windows key + R together to open RUN command box.
2. Copy and paste the following code in text field and click OK.
2. Click on Advanced.
3. Choose Tab File Types
4. Select Index Properties and File Contents
5. Click OK.
6. Choose OK when the Confirmation prompt pops up.
Fix 4 – Make sure Windows Search Service is Running
1. Press Windows key + R together to Open RUN.
2. Now, Write services.msc in it and Press OK.
3. Locate Windows Search Service, right click on it and Click on Properties.
4. Make sure the Startup Type is Automatic. If it is not Change it to Automatic.
5. Make sure that Service is running also. If it is not running, Click on start to start it.
Fix 5 – End Cortana Process
1. Press Ctrl + Shift + Esc keys together to Open Task manager.
2. Now, Locate Cortana and do a Right Click on it and Choose End task.
Doing this will restart the Cortana process and will Fix the issue.
Fix 6 – Install KB4532695 update to fix this
Microsoft have released KB4532695 update which seems to fix this issue for the PC affected by this bug. Just download ans install KB4532695 from this official Microsoft website.
Fix 7- Add System permission to a folder
If this problem persists with a particular folder then , system permission may be missing from the folder. To set this do this:
1. Do a Right click on the folder
2. Click on Properties
3. Click on Security Tab.
4. If you do not see System in the List of Group or User Name, Click on Edit.
5. Click on Add.
6. Write system in the text box and Click on Check names.
7. Keep Clicking on OK and Close every Open box so far.
Fix 8 – Troubleshoot Search and Indexing
1. Press Windows key + R together and write Control Panel in RUN command Box and Click OK to Open Control Panel.
2. Select Large icons in View by .
3. Click on Troubleshooting
4. Click on View all from the Right Menu.
5. Locate Search and Indexing and Click on it.
6. Choose Files Don’t appear in Search Results
7. Proceed with On Screen instructions.
Fix 9 – Default Apps by protocol
1. Press Windows key + I to open settings
2. Click on Apps.
3. Click on Default Apps from the left menu. Now, scroll in the right side and click on Choose default apps by protocol.
4. Now, scroll and and in the left side look for windows search protocol. After locating it just select windows explorer from the right, if it is not selected.
Saurav is associated with IT industry and computers for more than a decade and is writing on The Geek Page on topics revolving on windows 10 and softwares.
Related Posts:
Reader Interactions
Comments
Rombout Versluijs says
Does some one know or how i can make it stop refreshing or restarting the search everytime it looses focus. So for example i have 2 windows, ill do a search in on window and let it run and get results, that all works fine. Now ill focus on that second window browser through some folders and return to that other window. Why does it restart the search and clears all the results? THis is really counter intuitive, its making me go nuts
Thanks so much for this! By the time I got into fix 3 it my search was back!
Fix #2 actually worked for me!! I work a lot with a huge album of product photos so not being able to search was getting to be a real time suck. Thanks!
Fix 2 worked for me, thanks!
Thank you, option #3 finally got it working again. many thanks
John — Manchester says
Jan, some people cure diseases, some people save people from burning building, you have saved my keyboard from being smashed to bits and my poor cat for being pushed off my desk when she’s looking for strokes – which I believe is on par with the others.
Thanks for that, nothing worked for me until I ran that command and I’ve been trying for 3-4 hours today and 3-4 hours for the best part of another day a month ago (that time Indexing worked).
All the best 🙂
Jan’s solution is only one that worked for me. Windows 2004.
@Jan
You are a hero to me. I looked for days to find a solution. Nothing, realy nothing worked for me. As everything failed, why not try your solution.
What should I say; the only working solution.
Thanks so much for this powershell script.
Wow, had to get all the way down to Fix 8, but that fixed it! This File Explorer Search issue just happened with the last Windows update. Thanks for all the great suggestions!
Thanks a bunch Jan, ran the powershell script you left and worked. Did absolutely everything else everyone else suggested and no luck.
For me it was the SearchApp.exe process that kept crashing. That process was previously called SearchUI.exe, I think, and was a part of Cortana. Microsoft.Windows.Cortana has now changed name to Microsoft.Windows.Search, located in C:\Windows\SystemApps\.
To fix this issue for my user in Windows 10 2004 I ran the following command in PowerShell:
Get-AppxPackage Microsoft.Windows.Search | Foreach
Athanasios Chaldoupis says
I had also problem with explorer’s search. I solved it this way:
Open the Registry Editor. Find the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
1) Go to “ConsentPromptBehaviorAdmin” value , double click on it and set the data to 0 (zero).
2) Go to “EnableLUA” value double click on it and set the data to 0 (zero). If the value “EnableLUA” does not exist you must create it with right click as DWORD (32-bit).
Reboot your system to activate the changes.
RUSSELL CAROLLA says
I have tried out all the possibilities => without success
Why Microsoft? Windows 7 never had this issue
None of the steps above worked, though I did have an interesting time. Along with some other users, I tried to restart File Explorer from the Task Manager without many expectations. But, surprise surprise, it worked 🙂
Tried looking at default apps by protocol. Doing so immediately overrode all my custom defaults; hence I now have to contend with that, as well as the original fault
which remains unfixed. I suspect a buggy program… Sigh…
Finally the search is working. My problem was a little different in that I added a couple of file extensions (file types) but Windows Explorer wasn’t finding files in known searches. Specifically the new file types were .php files. Known searches would find strings in .css and .html files but not .php files. It was as if Windows Explorer was still blind to .php files. I tried everything, including running the PowerShell fix-it script, but none of it worked.
What seemed to make a difference was to go into Indexing Options, under “Index these Locations” I removed an entry for something that was no longer on my computer. When re-ran the index, the count of the number of items indexed increased dramatically. Now File Explorer searches were getting hits in the newly added (.php) file types.
I’ve been at this so long, now I can’t remember the problem for which I needed this capability. Ugh.
Fix-1 did the trick !!
Thank you very much, saved a lot of trouble !
I have manage to fix this issue in my windows10 (amd64)
1º step – Restore indexing services
2º step – make a shortcut of %windir%\System32\ctfmom.exe and place it on startup folder ..
( now everytime my pc startup it will auto run the ctfmom.exe allowing me to use the search functions )
Is enabling search indexing for SSD disk any good?
Restart Explorer worked 4me!
Cortannnnnna is OFF.
Tried all steps but Cortana as I do not want it running on my computer. Restarted Windows Explorer too and nothing has helped! Submitted issue (along with 100s of others) on Microsoft support page. Still waiting for fix!
Follow all steps in thegeekpage.com above, once done, you now have experience on skills. Click file explorer and try to click in search box. Still you can’t type in example *.jpg ? Or *.exe ? Do what post from Julia said. Opentask manager and find task Windows Explorer. Right click for menu popup. Click restart. Go to destop, click icon file explorer, click your path, say C: drive, then search box type in *.exe or *.jpg
Wow it freakin works now bill gates.
Robert Eckerlin says
I have the same problem. It is especially after an attempt to search my whole C Partition, that the the Search function stops to work. To work around this problem of not being able to search the whole C partition, I reboot the PC.
This happens much too often
I too, i am currently extremely disatisified with Windows 10 and I regrtet very much my very stable Windows / (that I gave up. because the end od its support period by Microsoft).
.
By the way: I resent very much that various excellent well functioning piece of Hardware are not supported under Windows 10: my excellent compact Bluetooth (=Bluetooth V3) K810 Keyboard, my excellent compact flatbed Canon Lide 200 Scanner, my excellent 10 year old PC….As if a Hardware Manufacturing Mafia took advantage of the end of windows 7 supporft to enrich itself by focring us or pushing us to buy new Hardware: new bluetooth keyboards, new Flatbed scanner, new PCs. is that ecological?
I have the same problem. When I turn on my computer, search box in file explorer stops working after a while. I think it began after the last update of my WIN 10.
Could not find a proper solution for this till now.
Having same problem on my home desktop Windows 10. (I don’t know how you find the 1903 version people keep referring to.) Very interesting, though, that I’ve never had one search issue on my work laptop Windows 10. Are we using some different, business version of Windows 10 that was properly tested, unlike the home version?
I went into the task manager and right clicked on Windows explorer and clicked on restart. This worked.
We shouldn’t have to do this and it only started going wrong after the last windows update.
When I type in FE to name or rename a file, it’s nonsense. I can hit the same key over and over and different characters/numbers will type each time. What the heck?
Julia’s fix worked for me:
I went into the task manager and right clicked on file explorer and clicked on restart. This worked for me after none of these did.
Broak Navi says
Like many others this didn’t work for me.
The amount of bugs in windows 10 is staggering.
I currently work as a contractor at Microsoft and even though I reported this issue months ago (which they came back with won’t fix) it won’t be fixed anytime soon. They (MS higher ups) needs to get their act together and fix their core systems. I’ve had calculator stop working, windows randomly not opening as expected, this search issue, clicks not working, just type from start menu not doing anything.
Staggering amount of bugs..
This is due to internal shifts removing more and more testers. Their hope was the devs would do the testing as well.. but most devs make crappy testers.
Answer is easy. Shift focus back into the OS. Make the OS super stable/solid and then go from there. Lots and lots of cool features.. but half working or not working at all just frustrates us to no end. 10 years here.. and the bubble is slowly collapsing. I just hope they reach their goal before it does.
I went into the task manager and right clicked on file explorer and clicked on restart. This worked for me after none of these did.
Mark Geller says
Having same problem with File Explorer…nothing happens when I click search box or try to type something into search box. Very frustrating especially when I need to search a folder with many, many, many files.
I started experiencing problem towards end of November.
Kendall DeMott says
None of this worked, Win 10 64 bit, latest updates. Can’t type in Explorer search window, this also goes for the search window in the Control Panel. I have no idea what the Ms people have done, but Win 10 has become a piece of crap, and years of Explorer working without issue, its now very buggy, and crashes a lot. Bill, please fire, and hire someone that can do a proper job!
I also have the issue since the November 2019 update
Cortana’s Frenemy says
Unfortunately none of these helped – when I click on the search box in Explorer nothing happens, I cannot type anything into the box. Also the Start Menu/Taskbar search appears to be affected; sometimes it closes as soon as I type a letter, other times it works.
I have gone to great (and varied) lengths to disable Cortana and it appears that one of the changed settings/hacks I did has disabled search in the most recent Windows update. I’m going to try re-enabling Cortana as much as possible to see if that helps.
The problem started roughly the last week of November 2019, so probably something in the Version 1903 update.
Hoping someone can find a solution, as I’m sure this has impacted a bunch of people.
I have tried out all the possibilities => without success 🙁
Milan Patnaik says
Thanks.
It helped me to resolve my issue.