🟣 C# / .NET 6+
Disable Tailored Experiences (C#)
Stops Windows from using diagnostic data to personalize tips and ads. Applies the tweak via Microsoft.Win32.Registry.
SetDisableTailoredExperiences.cs
// SetDisableTailoredExperiences.cs
//
// Disable Tailored Experiences.
// Stops Windows from using diagnostic data to personalize tips and ads.
//
// Usage: dotnet new console -o SetDisableTailoredExperiences, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Privacy");
key.SetValue("TailoredExperiencesWithDiagnosticDataEnabled", 0, RegistryValueKind.DWord);
Console.WriteLine("Disable Tailored Experiences applied.");