Fix problems in Windows Search
Try our Virtual Agent - It can help you quickly identify and fix common Windows Search issues.
If Windows Search is unresponsive or the search results don't appear as expected, try any of the following solutions in this article.
Original KB number: 4520146
Solution 1: Check for updates
Windows 11 and Windows 10 let you choose when and how to get the latest updates to keep your device running smoothly and securely. To manage your options and see any available updates, select the Start button, and then go to Settings > Update & Security > Windows Update > Check for updates. Install any available updates, and then restart your computer if the updates require it.
For more information, see Update Windows.
Solution 2: Search and Indexing troubleshooter
Your PC automatically indexes content to deliver faster search results. If you're running Windows 10, version 1903 (May 2019 Update) or later versions and Windows can detect a problem, we'll run the Search troubleshooter automatically. This troubleshooter will reset Windows Search back to the default experience. View your troubleshooter history under Settings > Update & Security > Troubleshoot > View History. Follow the solutions below if your issue is still not resolved.
Use the Windows Search and Indexing troubleshooter to try to fix any problems that may arise. To use the troubleshooter, follow these steps:
- Select Start > Settings.
- In Windows Settings, select Update & Security > Troubleshoot. Under Find and fix other problems, select Search and Indexing.
- Run the troubleshooter and select any problems that apply. Windows will try to detect and solve them.
You can also use a command prompt to open the troubleshooter. Press the Windows logo key+R, enter cmd in the Open box, and then select OK. At the command prompt, run the following command:
msdt.exe -ep WindowsHelp id SearchDiagnostic
For more information about Search and Indexing, see the following articles:
- Performance issues that affect Windows Search and Search indexing.
- FAQs on Search indexing in Windows 10.
Solution 3: Restart Windows Search
End the SearchUI process to restart Windows Search by following these steps:
- Press Ctrl+Alt+Delete, and then select Task Manager.
- In the Task Manager window, select the Details tab.
- In the Name column, right-click SearchUI.exe, and then select End task.
- When you're prompted to end SearchUI.exe, select End process.
The Windows Search process will automatically restart the next time you search.
If this solution doesn't fix your problem, try restarting your device. Restarting will also install any pending updates.
You may want to bookmark this page before you restart.
Solution 4: Reset Windows Search
Try resetting Windows Search by using the method that's appropriate for your version of Windows.
To determine which version of Windows your device is running, follow these steps:
Select Start > Settings > System > About.
Under Windows specifications, check which version of Windows your device is running.
Resetting Windows Search doesn't affect your files. However, it may temporarily affect the relevance of search results.
Windows 10, version 1809 and earlier
If the Windows 10 October 2018 Update or an earlier update is installed, reset Cortana to reset Windows Search by following these steps:
- Select Start, right-click Cortana, and then select More > App settings.
- In the Cortana settings, select Reset.
Windows 11, Windows 10, version 1903, and later
If Windows 11, Windows 10 May 2019 Update, or a later update is installed, use Windows PowerShell to reset Windows Search by following these steps:
You must have administrator permissions to run this script.
Download the ResetWindowsSearchBox.ps1 script from the Reset Windows Search PowerShell script, and save the file to a local folder.
Right-click the file that you saved and select Run with PowerShell.
If you're asked the following question, select Yes.
Do you want to allow this app to make changes to your device?
The PowerShell script resets the Windows Search feature. When the word Done appears, close the PowerShell window.
If you receive the "Cannot be loaded because running scripts is disabled on this system" error message, enter the following command on the command line of the PowerShell window, and then press Enter:
The current policy appears in the window. For example, you might see Restricted. We recommend that you note this value because you'll have to use it later.
Enter the following command on the command line of the PowerShell window, and then press Enter:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
You'll receive a warning message that explains the security risks of an execution policy change. Press Y, and then press Enter to accept the change.
To learn more about PowerShell execution policies, see About Execution Policies.
After the policy change is completed, close the window, and then repeat steps 2-4. However, when the Done message appears this time, DON'T close the PowerShell window. Instead, press any key to continue.
Revert to your previous PowerShell execution policy setting. Enter the following command on the command line of the PowerShell window, press the Spacebar, enter the policy value that you noted in step 5, and then press Enter:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy
For example, if the policy that you noted in step 5 was Restricted, the command would resemble the following one:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Restricted
You'll receive a warning message that explains the security risks of an execution policy change. Press Y, and then press Enter to accept the change and revert to your previous policy setting.
Close the PowerShell window.
If your organization has disabled the ability to run scripts, contact your administrator for help.
Solution 5: Regenerate the Microsoft.Windows.Search package AppData folder
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For protection, back up the registry before you modify it so that you can restore it if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
Make sure that Windows Search works for a newly created Windows account.
Delete the %USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.Search_cw5n1h2txyewy folder.
- Use the Windows Recovery Environment, or sign out and sign in to another user account.
- For an earlier version of Windows, Microsoft.Windows.Search_cw5n1h2txyewy should be replaced with Microsoft.Windows.Cortana_cw5n1h2txyewy.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Searchregistry key from the affected account.
Run the following cmdlet from an elevated PowerShell command prompt:
Add-AppxPackage -Path "C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -Register
Restart the system and search for something for the system to initialize the indexing. The registry key and the AppData folder should be regenerated.
Help us improve Search in Windows
If the previous suggestions don't fix the problem, let us know by sending feedback in the Feedback Hub. Provide details, such as a description of the problem, screenshots, log files, and any other information that might be helpful. In the Feedback Hub, select the appropriate category and subcategory. In this case, submit your feedback in the Cortana and Search category.