Fix Windows Automatic Repair Loop Without Admin Account
In this article
If Windows is stuck in an Automatic Repair loop and you don't have an admin account, you can still break the cycle by using the built-in recovery tools. The key is to access Advanced Startup Options and use Command Prompt to replace the problematic system files or disable automatic repair. This guide works for Windows 10 and 11, and it does not require an admin password—only physical access to the PC.
What You'll Need
- A working Windows installation USB drive or recovery drive (optional but recommended). If you don't have one, you can create it on another PC using Microsoft's Media Creation Tool.
- Access to the PC's BIOS/UEFI (usually by pressing F2, F12, Del, or Esc during startup—label varies by manufacturer).
- A few minutes of patience—some steps require waiting for the system to restart.
Step-by-Step
- Force shutdown and restart three times. If the PC is stuck in the repair loop, hold the power button for 10 seconds to turn it off. Turn it on, and as soon as you see the Windows logo (or the spinning dots), hold the power button again to force shutdown. Repeat this three times. On the fourth boot, Windows should display the “Preparing Automatic Repair” screen, then take you to the Advanced Startup Options (blue screen with “Choose an option”).
- Go to Troubleshoot > Advanced options > Command Prompt. If you don't see Command Prompt, look for “Startup Settings” or “Command Prompt” under “More options.” This opens a black command-line window. If the system asks for an account, click “Cancel” or “Skip”—you do not need an admin account for this step.
- Identify the Windows drive letter. In Command Prompt, type
diskpartand press Enter. Then typelist volumeand press Enter. Look for the volume with the “Windows” label (usually C:, but sometimes D: or E:). Note the drive letter. Typeexitto leave DiskPart. - Replace the problematic registry hives. Type the following commands, pressing Enter after each line. Replace
C:with your actual Windows drive letter if different:cd /d C:\Windows\System32\configren DEFAULT DEFAULT.oldren SAM SAM.oldren SECURITY SECURITY.oldren SOFTWARE SOFTWARE.oldren SYSTEM SYSTEM.old
If any file is missing (error “cannot find”), that’s fine—continue with the next one. These commands rename the registry hives that may be corrupted. - Copy backup hives from the Windows.old or RegBack folder. If you upgraded Windows and have a Windows.old folder, type:
copy C:\Windows.old\Windows\System32\config\DEFAULT C:\Windows\System32\config\DEFAULT
Repeat for SAM, SECURITY, SOFTWARE, and SYSTEM. If you don’t have Windows.old, try the RegBack folder:copy C:\Windows\System32\config\RegBack\SYSTEM C:\Windows\System32\config\SYSTEM
Again, replace C: with your drive. If the copy fails, skip this step—you’ll use a different method below. - Disable automatic repair. Type
bcdedit /set recoveryenabled Noand press Enter. This tells Windows not to launch Automatic Repair on the next failed boot. If you get an “access denied” error, proceed to the next step. - Exit Command Prompt and restart. Type
exitand press Enter. Click “Continue” (or “Restart”) on the blue screen. If Windows boots normally, you’re done. If it still loops, continue to the next step. - Use Startup Repair from Advanced Options. If the loop persists, go back to Advanced Options (repeat step 1 if needed) and choose “Startup Repair.” Let it run—it may take 15-30 minutes. It will attempt to fix boot issues automatically.
- If all else fails, reset the PC (keeps files). From Advanced Options, choose “Troubleshoot > Reset this PC > Keep my files.” This reinstalls Windows while preserving your personal files, but it removes installed apps and settings. It does not require an admin password. This is a last resort because it takes time and you’ll need to reinstall programs.
Common Mistakes
- Using the wrong drive letter. Many people assume C: is the Windows drive, but in the recovery environment it might be D: or E:. Always check with
list volume. - Skipping the registry rename step. If you only disable recovery, the loop may continue because the underlying corruption remains. Renaming the hives forces Windows to recreate them.
- Forcing shutdown too many times. Three times is enough—more can cause additional file corruption.
- Choosing “Reset this PC” too early. Try the Command Prompt fixes first—they’re faster and less destructive.
Tips
- If you have a Windows installation USB, use it to boot from the USB and choose “Repair your computer” instead of relying on the built-in recovery. This gives you the same Command Prompt but often works more reliably.
- Write down the commands before you start, or take a photo of them on your phone—you’ll be in a text-only environment.
- After the fix, create a new admin account or enable the built-in Administrator account (type
net user administrator /active:yesin Command Prompt) to regain admin access. You can disable it later. - If you have a system restore point, you can try “System Restore” from Advanced Options—it might fix the issue without command-line work.
Troubleshooting
“Access denied” when running bcdedit. This happens if the system is locked down. Try running bcdedit /set {default} recoveryenabled No (with braces). If that fails, skip it—the registry rename may be enough.
Command Prompt doesn’t appear. On some systems, you need to go to “Troubleshoot > Advanced options > Startup Settings” and click “Restart,” then press F6 to enable Safe Mode with Command Prompt. From there, you can run the same commands.
Copy fails with “file not found.” The RegBack folder may be empty (common on newer Windows versions). In that case, you can’t restore from backup—you’ll need to rely on Startup Repair or Reset.
Windows boots but is stuck on a black screen. After renaming the hives, Windows will rebuild them on first boot, which can take a few minutes. Wait 10-15 minutes before assuming it’s frozen.
Loop continues after all steps. This usually means a hardware issue (failing hard drive or RAM) or a deeply corrupted system. Run chkdsk /r C: from Command Prompt to check the disk, and if that doesn’t help, you may need to reinstall Windows from scratch using the USB drive.
Frequently Asked Questions
Can I fix this without a USB drive?
Yes, if you can access Advanced Startup Options by force-shutting down three times. The Command Prompt is available there. A USB drive is only needed if the system won’t boot to the recovery screen at all.
Will I lose my files if I rename the registry hives?
No. Renaming those files does not touch your personal files. However, it may reset some system settings (like desktop wallpaper or default apps) because the registry is rebuilt.
Why do I need to rename the hives? What does that do?
If the registry files are corrupted, Windows can’t boot. Renaming them forces Windows to create fresh copies from the backup stored in the system. It’s a common fix for the repair loop.
Is there a way to create an admin account from Command Prompt?
Yes. After you’ve booted into the recovery Command Prompt, you can type net user Administrator /active:yes to enable the built-in admin account (or net user TempAdmin Password123 /add to create a new one). This works even without an existing admin.
What if I don’t have a Windows.old folder?
That’s fine. The registry rename step still works—Windows will recreate the hives from its own backup. If that fails, try Startup Repair or Reset.
How long does the reset take?
Depending on your hardware, “Keep my files” can take 30 minutes to 2 hours. It will preserve your personal files but remove installed apps and settings.