🟣 C# / .NET 6+

Disable First Logon Animation (C#)

Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via Microsoft.Win32.Registry.

By WindowsScripting.com · 624 B
SetDisableFirstLogonAnimation.cs
// SetDisableFirstLogonAnimation.cs
//
// Disable First Logon Animation.
// Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: dotnet new console -o SetDisableFirstLogonAnimation, replace Program.cs with this
// file, then dotnet run.

using System;
using Microsoft.Win32;

using RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System");
key.SetValue("EnableFirstLogonAnimation", 0, RegistryValueKind.DWord);

Console.WriteLine("Disable First Logon Animation applied.");