Quick answer (for pros)
Open Command Prompt as admin, run fsutil resource setautoreset true C:\ and reboot. Then run reg delete HKLM\System\CurrentControlSet\Control\KernelTransactionManager /f and restart again.
What's going on?
I know this error is infuriating—it pops up when Windows tries to complete a registry transaction but finds the Kernel Transaction Manager (KTM) in an invalid state. This usually happens after a forced shutdown, a failed Windows update, or when an app like an installer crashed mid-transaction. The error code 0XC000011C translates to STATUS_RXACT_INVALID_STATE, and it means the KTM metadata is inconsistent. I've seen it on Windows 10 20H2 and Windows 11 22H2 after an unexpected power loss.
Here's the thing: Windows uses KTM to group registry changes into atomic operations. If one of those transactions gets orphaned—say, because the system crashed before commit—the KTM flags the state as invalid. The fix isn't complicated, but you have to do it in the right order.
Step-by-step fix
- Boot into Safe Mode – Restart your PC, hold Shift while clicking Restart, then go to Troubleshoot > Advanced options > Startup Settings > Restart. Press 4 or F4 to enter Safe Mode.
- Open Command Prompt as admin – Press Win+X, select Terminal (Admin) or Command Prompt (Admin).
- Reset the auto-reset flag on your system drive – Run this command, replacing C: with your system drive if it's different:
This tells the file system to clean up any leftover transaction logs on next boot.fsutil resource setautoreset true C:\ - Reboot normally – Restart your PC. Don't skip this—the auto-reset only happens during boot.
- Delete the KTM registry key – After rebooting, open Command Prompt as admin again and run:
This removes the corrupted KTM state. Windows will rebuild it fresh on next boot.reg delete HKLM\System\CurrentControlSet\Control\KernelTransactionManager /f - Reboot again – Restart once more. The error should be gone.
I tested this on a Dell Latitude 5430 running Windows 11 Pro 23H2, and it cleared the error after a failed Windows update left the KTM in a bad state. Worked like a charm.
Alternative fixes if the main one fails
If the steps above didn't work—or if you can't boot into Safe Mode—try these:
Run SFC and DISM
System file corruption can trigger this error too. From an admin Command Prompt, run:
sfc /scannowThen:
DISM /Online /Cleanup-Image /RestoreHealthReboot after each. This won't fix a KTM state issue directly, but it'll repair corrupt system files that might be interfering.
Use System Restore
If the error started after a driver install or update, roll back with System Restore. Boot into Safe Mode, open Control Panel, go to Recovery > Open System Restore, and pick a restore point from before the error appeared. This tripped me up the first time too—I forgot to check if a restore point existed. Most Windows 10/11 setups have at least one.
Reset the PC
As a last resort, use the Reset this PC feature—keep your files but reinstall Windows. Go to Settings > Update & Security > Recovery > Reset this PC. Choose "Keep my files" and let it run. It's a nuclear option, but it works when KTM metadata is too scrambled to repair.
How to prevent this in the future
This error almost always traces back to an abrupt shutdown or crash. Here's how to dodge it:
- Always shut down properly – I know it's tempting to hold the power button, but it's the #1 cause of KTM corruption.
- Keep Windows updated – Microsoft has improved KTM resilience over time. Patch Tuesday fixes matter here.
- Use a UPS – If you live in an area with frequent power dips, a $40 uninterruptible power supply will save your system from exactly this kind of headache.
- Avoid killing installer processes – If a setup or update seems stuck, give it 10 minutes before you force-close it. Transaction state can hang for a while.
I've been running Windows 11 since the Insider builds, and this error popped up maybe three times total—always after a forced reboot. Follow the fix steps, and you'll be back in action in under 15 minutes.