Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Last active December 6, 2025 09:49
Show Gist options
  • Select an option

  • Save Aldaviva/453836009632bc10f78d1747b13dc0e3 to your computer and use it in GitHub Desktop.

Select an option

Save Aldaviva/453836009632bc10f78d1747b13dc0e3 to your computer and use it in GitHub Desktop.
Block Microsoft Store ads in the Windows 11 24H2 Start Menu

Problem

In May 2025, Microsoft once again changed (for like the 5th time) how they show ads for Microsoft Store apps in the Windows 11 Start Menu. These ads appear in search results under the Store heading, and they cannot be blocked by any previous techniques such as web search in Start (DisableSearchBoxSuggestions) or Store ads in Start Recommended (Start_IrisRecommendations).

Store apps ads in Start Menu

Solution

  1. Download DB Browser for SQLite (the x64 .zip file is sufficient)
  2. Run DB Browser for SQLite.exe
  3. Open the SQLite database file
    %LOCALAPPDATA%\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalState\store.db
    
  4. In the Execute SQL tab, run the following query by pasting it into the text editor and then pressing the ▶️ button
    DELETE FROM SearchProducts
  5. Save the database by clicking the 💾 Write Changes button
  6. Use filesystem ACLs to set the database file to read-only
    1. Right-click store.db and go to Properties › Security › Advanced
    2. Disable permissions inheritance, and choose to convert inheritable permissions to explicit ones
    3. Edit each principal, removing the Write permission

Changes take effect immediately, without restarting the computer or killing any processes. The Microsoft Store app is still functional with this change, and you can still use it do things like update installed apps.

References

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