// 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.");