🟣 C# / .NET 6+

Disable Activity Feed / Timeline (C#)

Disables the Windows Activity Feed / Timeline feature (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via Microsoft.Win32.Registry.

By WindowsScripting.com · 577 B
SetDisableActivityFeed.cs
// 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.");