🟣 C# / .NET 6+
Disable Fast Startup (C#)
Disables Fast Startup, useful when dual-booting or troubleshooting shutdowns (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via Microsoft.Win32.Registry.
SetDisableFastStartup.cs
// SetDisableFastStartup.cs
//
// Disable Fast Startup.
// Disables Fast Startup, useful when dual-booting or troubleshooting shutdowns (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: dotnet new console -o SetDisableFastStartup, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SYSTEM\CurrentControlSet\Control\Session Manager\Power");
key.SetValue("HiberbootEnabled", 0, RegistryValueKind.DWord);
Console.WriteLine("Disable Fast Startup applied.");