File Explorer in Windows 11 includes a search box in the top right corner that allows users to quickly find files and folders. By default, Windows remembers the terms you type into this box and displays them as a dropdown list of recent suggestions the next time you click into the search field. While this can speed up repetitive searches for personal users, it presents a privacy and security risk in shared workspaces, kiosks, or corporate environments. An employee’s search history might inadvertently reveal the names of confidential projects, sensitive client files, or internal HR documents to anyone who subsequently uses the same terminal or looks over their shoulder.
This guide explains how to completely disable the File Explorer search history system-wide using the Group Policy Editor in Windows 11, ensuring that past search terms are never saved or displayed.
Disable Search History via Group Policy
To enforce a strict block that prevents the Windows Shell from recording search terms and locks the behavior across all user profiles, we must deploy an administrative template. Note that this requires Windows 11 Pro, Enterprise, or Education editions.
- Log into Windows 11 with an Administrator account.
- Press the Windows Key + R to open the Run dialogue box.
- Type
gpedit.mscand press Enter to launch the Local Group Policy Editor. - In the left-hand navigation pane, strictly follow this exact path:
User Configuration > Administrative Templates > Windows Components > File Explorer - In the right-hand pane, locate the policy named Turn off display of recent search entries in the File Explorer search box.
- Double-click the policy to open its configuration window.
- Select the radio button next to Enabled. (Note: You must enable this policy to enforce the “turn off display” restriction).
- Click Apply, then click OK.
Verify the Configuration Lockdown
To enforce the change immediately across the system without requiring a full reboot, open an elevated Command Prompt and execute gpupdate /force. You may also need to restart the Windows Explorer process (or simply sign out and sign back in) for the UI change to take full effect.
To verify the restriction is active, open File Explorer (Windows Key + E). Click into the search box in the top right corner. The dropdown menu that normally populates with past search terms will not appear. Even if you type a new search, execute it, and then click the search box again, the history will remain completely blank. The operating system is now strictly prohibited from logging local File Explorer queries.