🟣 C# / .NET 6+
Disable Windows Consumer Features (C#)
Stops Windows from auto-installing suggested consumer apps (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via Microsoft.Win32.Registry.
SetDisableConsumerFeatures.cs
// SetDisableConsumerFeatures.cs
//
// Disable Windows Consumer Features.
// Stops Windows from auto-installing suggested consumer apps (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: dotnet new console -o SetDisableConsumerFeatures, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\CloudContent");
key.SetValue("DisableWindowsConsumerFeatures", 1, RegistryValueKind.DWord);
Console.WriteLine("Disable Windows Consumer Features applied.");