How to Reset Windows Search in Windows 11
- 7 steps
- Needs administrator rights
A search reset in Windows 11 rebuilds the search index, the database Windows uses to find your files and apps. The quickest way is Settings Privacy & security Searching Windows Advanced indexing options, then Advanced Rebuild. If that does not help, run Microsoft’s reset script from an administrator Terminal.
Resetting fixes missing files, blank search panels, and slow results. When search stops working properly in a currently supported version of Windows 11 (25H2 or 26H2), clearing the index forces Windows to map everything out again from scratch. The steps are the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2).
Your personal files and photos stay safe. Only the index is rebuilt, and Windows keeps running normally while it works in the background.
To reset Windows Search in Windows 11, open Settings Privacy & security Searching Windows Advanced indexing options, then click Advanced Rebuild and confirm with OK. This rebuilds the search index, the database Windows uses to find files and apps. Your personal files stay safe, and results may be incomplete until the rebuild finishes.
Steps to Reset Windows Search
Step 1Download the Reset Script
Try the built-in rebuild first, because it needs no download and no script. These steps reset Windows Search by rebuilding the index from Settings:
- Open Settings. Press Win+I or right-click the Start button and choose Settings.
- Select Privacy & security in the left pane. The privacy options list opens on the right.
- Click Searching Windows. This page controls what Windows indexes and how.
- Scroll down and click Advanced indexing options. The Indexing Options window opens.
- Click Advanced. Windows may ask for administrator permission, so click Yes if it does.
- Click Rebuild under Index Settings. A warning says the rebuild can take a long time.
- Click OK to confirm. The index starts rebuilding, and results may be incomplete until it finishes.
That’s it. You have now rebuilt the search index without a script. If search is still broken after the rebuild finishes, use the script method below.
Microsoft provides a small program, known as a script, to reset Windows Search. The file is named ResetWindowsSearchBox.ps1. You download it first and run it later from Windows Terminal. Click the link below to download it:
Download ResetWindowsSearchBox.ps1
Download only from the official Microsoft link above. Scripts from other sites can contain anything, and this one will run with admin rights.
- Select your language on the download page. The download link for that language appears.
- Save the file to your Desktop or Downloads folder. Pick a folder that is quick to find, because you need the file’s full path later.
- Check the file came from the Microsoft link if your browser warns that it may be unsafe. Keep it only if it did.
You should now have the script saved on your PC, ready to run.

Step 2Open Windows Terminal as Administrator
- Press the Windows key. The Start menu opens.
- Type Windows Terminal. On some builds the app is listed as Terminal.
- Right-click the result in the list and choose Run as administrator from the menu.
- Click Yes if a User Account Control prompt asks whether to allow the app to make changes to your device. User Account Control is the Windows prompt that asks before a program gets admin rights.
You should now see a Terminal window with “Administrator” in its title bar.
Running the script requires special permissions, also known as admin rights. If you skip this, the script cannot reset the search service. Here’s how to do it:
- Click the Start button or press the Windows key. The Start menu opens with the search box ready for typing.
- Type Windows Terminal. The app appears at the top of the results.
- Right-click Windows Terminal and choose Run as administrator. Confirm with Yes if Windows asks for permission. If the option is missing, you are probably right-clicking a different entry, so check that you picked the app itself. If you use a work PC and your account has no admin rights, ask your IT team to run the script.
- Open Windows Terminal with admin rights by following this guide if you prefer another route. Any of these methods works, as long as the window is elevated, meaning it runs with admin rights.
You should now have an elevated Terminal window open and ready for the command.
Step 3Run the Reset Script
Next, paste a specific command into the elevated Windows Terminal window. The command tells PowerShell to run the downloaded script. In current versions of Windows 11 (25H2 and 26H2), Terminal opens PowerShell by default, so you can type the command straight in.
Run it only if the file came from the official Microsoft link above. If you are unsure, open the file in Notepad and read it first.
- Type or paste PowerShell -ExecutionPolicy Unrestricted -File into the open window, followed by a space.
- Add the full file path of your downloaded script. To get it quickly, open the folder in File Explorer, select the file, press Ctrl+Shift+C to copy its path, then paste it into Terminal with Ctrl+V.
- Wrap the path in quotation marks if it contains spaces. Copying it as above adds them for you.
- Press Enter to start the process. A prompt appears in the window.
The execution policy setting here applies only to this one run. It does not change the policy on your PC permanently.
PowerShell -ExecutionPolicy Unrestricted -File "<Full path of ResetWindowsSearchBox.ps1 file>"For example, if your file is in Downloads and your username is User01, type the command shown below. Your own command will differ in the username and the file name, so check both against what is on your PC:
PowerShell -ExecutionPolicy Unrestricted -File "C:\Users\User01\Downloads\ResetWindowsSearchBox.ps1"Step 4Confirm Running the Script
- Type
Rat the prompt and press Enter. This confirms the reset and starts the script. - Wait while the script runs on its own. Text scrolls by in the window while it works.
If you get an error that the file cannot be found, the path is wrong. Run the command again with the corrected path.

You should now have a reset Windows Search. Once the script finishes, you can close Windows Terminal. A restart is not normally required.
Search takes a little time to work normally again, because Windows rebuilds the search index in the background. Depending on how many files you have, this can take from a few minutes to a few hours. Settings Privacy & security Searching Windows shows the indexing status. Leaving the PC on, and plugged in if it is a laptop, helps the rebuild finish sooner.
Why Reset Windows Search?
- Fixes problems like no search results showing up, including files and apps that you know are on the PC.
- Improves slow or laggy search performance once the index has been rebuilt.
- Corrects wrong or missing suggestions, such as results that point to items you have already moved or deleted.
Important Notes
- You must run the script as an administrator to reset Windows Search. If Terminal is not elevated, the reset fails.
- Resetting does not delete your personal files. Only the search index is rebuilt.
- Search might feel a bit slow, or return incomplete results, right after resetting because Windows is rebuilding the search database. This is normal and goes away once the rebuild is done.
Where to Learn More
For official details and troubleshooting tips, visit Microsoft Support – Fix Windows Search Problems.
Need Help?
If problems persist or questions arise, leave a comment below or ask someone trusted for help. When you do, say which Windows 11 version you use and any error text that appeared in Terminal, so the problem is faster to track down.
Summary
Search should now return your files and apps again once the index finishes rebuilding. If it still misbehaves after a few hours, run the built-in Rebuild again from Advanced indexing options, or repeat the script from an elevated Terminal. There is nothing to undo, because Windows rebuilds the index by itself. If the problem stays, post a comment with your Windows 11 version and any error text.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!