Skip to content

Instantly share code, notes, and snippets.

@davilico05
Last active April 11, 2025 21:10
Show Gist options
  • Select an option

  • Save davilico05/7ca381717d01aedea80ff76146e639bb to your computer and use it in GitHub Desktop.

Select an option

Save davilico05/7ca381717d01aedea80ff76146e639bb to your computer and use it in GitHub Desktop.
Microsoft Outlook doesn't search for emails in Windows 11

Outlook 2007 Search Not Working (Windows 11)

"No maches found" is the search result in Outlook 2007 when you update to Windows 11. Nothing breaks in Windows 10 and now is gone.

Let's fix it outlook-search

The problem here is the new indexing way of Windows 11. indexing-options

Windows 11 automatically adds Microsoft Outlook to its indexing options, but it doesn’t properly recognize Outlook 2007 PST files. As a result, the search function is broken.

Because of this incompatibility, Windows 11 doesn’t show any search results. Outlook also doesn’t use its own search since Windows indexing is enabled.

The solution

The solution is to tell Windows to stop indexing Outlook. However, it isn’t as simple as just disabling Outlook in the Indexing Options. To prevent Windows from automatically adding Outlook again each time we open it, we need to be a bit more creative.

Regedit

To disable the Windows Desktop Search Service for Outlook you have to go through the following steps:

  1. In Windows, right-click Start, and then select Run. In the Open: box type regedit, and then click OK. This will open the registry editor.

  2. Find this subkey in the registry and then click it:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
  1. Click Edit > New > Key, and name the new key Windows Search.

  2. Select the new Windows Search key.

  3. Click Edit > New > DWORD Value.

  4. Type PreventIndexingOutlook for the name of the DWORD, and then press Enter.

  5. Right-click PreventIndexingOutlook, and then click Modify.

  6. In the Value data box, type 1 to enable the registry entry, and then click OK.

  7. Exit Registry Editor, and then restart Outlook.

If you want to re-enable the Windows Desktop Search, you need to disable the PreventIndexingOutlook setting by typing 0 (zero) and clicking OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment