🟣 C# / .NET 6+

Disable Bing Search Suggestions (C#)

Stops the taskbar search box from showing web/Bing suggestions. Applies the tweak via Microsoft.Win32.Registry.

By WindowsScripting.com · 528 B
SetDisableBingSearch.cs
// SetDisableBingSearch.cs
//
// Disable Bing Search Suggestions.
// Stops the taskbar search box from showing web/Bing suggestions.
//
// Usage: dotnet new console -o SetDisableBingSearch, replace Program.cs with this
// file, then dotnet run.

using System;
using Microsoft.Win32;

using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Policies\Microsoft\Windows\Explorer");
key.SetValue("DisableSearchBoxSuggestions", 1, RegistryValueKind.DWord);

Console.WriteLine("Disable Bing Search Suggestions applied.");