How to Safely Modify BootExecute in Regedit
Modifying the BootExecute registry value allows
administrators to configure native applications, such as the
autochk disk-checking utility, to run early during the
Windows boot process before the Win32 subsystem initializes. Because
this value directly affects the Windows Session Manager
(smss.exe), any syntax error, missing executable, or
incorrect data type can result in a Blue Screen of Death (BSOD) or a
continuous reboot loop. Taking proper precautions—such as backing up the
registry, verifying data types, and preparing recovery tools—is
essential before making any modifications.
Understand the Location and Default Function
The BootExecute value is located in the Windows Registry
at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
By default, the value is set to autocheck autochk *.
This instructs Windows to check the integrity of storage volumes at
startup. Changing or removing this string changes how Windows verifies
drives or runs early-stage maintenance tasks.
Essential Precautions Before Editing
Back Up the Registry Key Before making changes, right-click the
Session Managerkey inregedit.exeand select Export. Save the.regfile to a known location or an external drive. This allows for quick restoration if registry corruption occurs.Create a System Restore Point Generate a manual System Restore point. If Windows fails to load into the desktop environment, you can use Advanced Startup Options to roll back the system state.
Prepare a Bootable Windows Installation Media Keep a bootable Windows USB drive available. If an invalid
BootExecuteentry causes a startup failure, you must boot from the installation media, access the Command Prompt, and use thereg loadcommand to edit the offline registry hive located atC:\Windows\System32\config\SYSTEM.Preserve the
REG_MULTI_SZData TypeBootExecutemust strictly be a Multi-String Value (REG_MULTI_SZ). If the value is deleted and recreated as a standard String Value (REG_SZ) or Expandable String Value (REG_EXPAND_SZ), the Session Manager will fail to parse it, causing a startup crash (STOP: 0xC000021Aor similar).Ensure Precise Syntax and Formatting Each command within a
REG_MULTI_SZentry must be placed on its own line. Do not add trailing spaces, unnecessary quotation marks, or invalid switches. Unless you intentionally want to disable disk checks entirely, ensureautocheck autochk *remains the primary entry.Verify Executables Run in Native Subsystem Mode Any program added to
BootExecutemust exist inC:\Windows\System32and be compiled specifically as a Windows Native API application. Standard Win32.exefiles cannot execute at this stage of the boot cycle and will cause the boot sequence to halt.