Search · Windows 11
Fix a Windows search box that will not accept typing
When you click the search box and nothing you type appears, the search interface or the text input process has usually stalled, not your keyboard. Restart those processes first, check the search service next, and repair system files only if the box keeps going dead.
What you need
- A working keyboard test elsewhere. Type a sentence in Notepad first, so you know the keys themselves are fine.
- Task Manager. Press Ctrl+Shift+Esc — you will restart two small processes from it.
- Admin access for the later steps only. The process restarts and service check need none.
Read the problem before you touch it
- Separate the keyboard from the search box. If typing works in Notepad, File Explorer, and your browser but not in search, the keyboard and its driver are fine. The fault sits in the search interface or the shared text input process that feeds it.
- Notice whether the box opens at all. A box that opens but swallows keystrokes points at text input. A box that will not open, or opens blank and closes, points at the search host itself. Microsoft groups both under its search fixes in Fix problems in Windows Search.
- Check whether other modern input fields fail too. Try typing in the Settings search box. If that is dead too, the shared text input process is the common branch, and restarting it matters more than rebuilding any search index.
The simple fixes, in order
- Restart the search host process. Open Task Manager, find SearchHost.exe on the Details tab, and end the task. It relaunches on its own within seconds. Click the search box and type straight away.
- Restart Windows Explorer. On the Processes tab, select Windows Explorer and choose Restart. The taskbar and search box are drawn by the shell, so a stalled shell takes the box with it — and this restart keeps your open apps running.
- Restart the Windows Search service. Press Windows key + R, type
services.msc, and open it. Find Windows Search, confirm it is running and its startup type is Automatic (Delayed Start), and choose Restart. A stopped service leaves the box unable to accept or return anything useful. - Run the Search and Indexing troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and run Search and Indexing. Pick the problem that matches — files not appearing is different from not being able to type — and let it reset what it finds.
The advanced route
- Restart the text input process by hand. Press Windows key + R and run
ctfmon.exe. This small process handles text input for the search box and other modern fields. If typing returns immediately, ctfmon had stalled; if it keeps stalling, note which app you opened just before it died. - Repair system files if the box dies again within the session. Open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, then runsfc /scannow. Microsoft documents both tools in Using System File Checker in Windows. - Test in a new user profile. Create a local test account in Settings > Accounts > Other users, sign in, and try search. If it types normally there, your main profile's search settings are damaged rather than Windows itself, and the fix belongs to that profile.
End state
- Clicking the search box and typing shows your characters as you type them.
- Search returns results for a file or app you know is on the PC.
- The box still accepts typing after sleep, sign-out, and a restart.
When it goes wrong
- The box accepts typing but returns nothing. That is an indexing problem, not an input one. Leave the input fixes and rebuild the index from Settings > Privacy & security > Searching Windows.
- Typing fails everywhere, not just search. Stop working on search — test a different keyboard and check the keyboard layout in Settings > Time & language > Language & region.
- SearchHost restarts itself in a loop and the box flickers. Note the time, then check Event Viewer under Windows Logs > Application for a repeating search error at that time before trying the profile test.
Related fixes
-
Fix the Start menu or Windows Search not opening or not finding files
Restart the shell and search processes, check the Search service, rebuild the index, then repair the system files if Start itself is damaged.
-
Fix a taskbar that stops responding or whose icons vanish until restart
A taskbar that freezes or loses its icons is usually Windows Explorer — the process that draws the taskbar — stuck or working with a damaged icon cache. Restart Explorer first so you can keep working, clear the cache next, then repair the system files if it keeps coming back.
-
Fix Windows Search results that list files you already deleted
When Search keeps offering files you deleted, the search index is stale — it is a catalog that has not caught up, not files secretly still on the drive. Confirm the file is really gone, restart the search service once, then rebuild the index so the catalog matches the disk again.
-
Fix Windows Security protection that keeps turning itself off
Real-time protection that switches itself back off is rarely a setting you changed — it usually means the Microsoft Defender Antivirus service is not running, or another antivirus has taken over and then failed. Check which protection is actually in charge first, remove the conflict next, and repair the service and system files only if the toggle still will not stay on.
Sources
- Microsoft Learn, Fix problems in Windows Search — restarting search, the troubleshooter, and indexing resets.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.