Disable Web Search in Start Menu
Keeps the Start menu and taskbar search local by hiding web results and web suggestions
Author: DpakB

The search UI that the Start menu and the taskbar open mixes results from Bing
into local results. Windows can be told to stop doing that with settings and
policies, but they are read when the search UI starts, so changing them means
signing out, and the registry entries stay behind afterwards.
This mod does the same thing without touching the registry. It sits in the
search UI process and answers the setting reads as if web search had been
turned off. Turning the mod off gives the old behavior back the next time the
search UI starts.
On both Windows 10 and Windows 11, typing in the Start menu hands the query to
this search UI, so the Start menu search is covered as well.
Settings
- Also hide cloud content results reports the two "Cloud content search"
switches from Settings as off. The Windows 11 search UI asks for them before
it puts web results in the list, so turning this setting off can bring web
results back, and leaving it on also removes OneDrive, Outlook and SharePoint
results from search.
Notes
- Nothing is written to the registry and no files are touched. The values the
mod reports are the ones Windows itself uses:
DisableSearchBoxSuggestions, ConnectedSearchUseWeb and
DisableWebSearch, the web search policies
BingSearchEnabled, the older web results switch
IsMSACloudSearchEnabled, IsAADCloudSearchEnabled and
AllowCloudSearch, the cloud content switches, only with the setting above
If you set any of these yourself, the mod simply agrees.
- The search UI is a packaged app and reaches the registry through the API sets,
which end up in
kernelbase.dll. Desktop callers import advapi32.dll, whose
exports are separate entry points rather than forwarders on current builds.
Both are hooked, so neither path is missed.
- Web results are decided while the search UI sets up, so after enabling the mod
or changing a setting, end
SearchHost.exe in Task Manager. Windows starts it
again on the next search, and the new settings are read then.
- If web results survive, turn on the mod's log and open the search UI once. The
log lists every read the mod answered, which shows whether the process asks
for these values at all.