🟣 C# / .NET 6+

Disable Start Menu Suggested Apps (C#)

Stops Windows from silently installing suggested Store apps. Applies the tweak via Microsoft.Win32.Registry.

By WindowsScripting.com · 554 B
SetDisableSuggestedApps.cs
// SetDisableSuggestedApps.cs
//
// Disable Start Menu Suggested Apps.
// Stops Windows from silently installing suggested Store apps.
//
// Usage: dotnet new console -o SetDisableSuggestedApps, replace Program.cs with this
// file, then dotnet run.

using System;
using Microsoft.Win32;

using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager");
key.SetValue("SilentInstalledAppsEnabled", 0, RegistryValueKind.DWord);

Console.WriteLine("Disable Start Menu Suggested Apps applied.");