🟣 C# / .NET 6+
Disable Start Menu Web Search (C#)
Stops the Start Menu search from including web results. Applies the tweak via Microsoft.Win32.Registry.
SetDisableWebSearch.cs
// SetDisableWebSearch.cs
//
// Disable Start Menu Web Search.
// Stops the Start Menu search from including web results.
//
// Usage: dotnet new console -o SetDisableWebSearch, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Search");
key.SetValue("BingSearchEnabled", 0, RegistryValueKind.DWord);
Console.WriteLine("Disable Start Menu Web Search applied.");