// SetDisableActivityFeed.cs // // Disable Activity Feed / Timeline. // Disables the Windows Activity Feed / Timeline feature (requires admin). Requires an elevated (Administrator) prompt. // // Usage: dotnet new console -o SetDisableActivityFeed, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\System"); key.SetValue("EnableActivityFeed", 0, RegistryValueKind.DWord); Console.WriteLine("Disable Activity Feed / Timeline applied.");