Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Choose Your Keyboard Layout Windows Loop

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If Windows is stuck in the "Choose your keyboard layout" screen on every boot, the fix is usually to repair the boot configuration data (BCD) or disable the automatic repair loop. This guide shows you the exact steps to break the loop and get back to your desktop, without reinstalling Windows.

What You'll Need

  • A Windows installation USB drive or recovery drive (you can create one on another PC using Microsoft's Media Creation Tool).
  • Access to the UEFI/BIOS boot menu (usually F12, Esc, or Del during startup — check your PC's manual).
  • About 30 minutes of time.

Step-by-Step

  1. Boot from the installation media. Insert the USB drive, restart your PC, and press the boot menu key (often F12 or Esc) to select the USB drive. If the PC boots to the keyboard layout screen again, force a shutdown (hold the power button for 10 seconds) and try again.
  2. Start the repair environment. When the Windows Setup window appears, click Next, then click Repair your computer in the bottom-left corner. This opens the recovery environment.
  3. Open Command Prompt. In the recovery environment, go to Troubleshoot > Advanced options > Command Prompt. If prompted, choose your keyboard layout (this is normal — the loop happens after this step, not before).
  4. Run the boot repair commands. In the Command Prompt, type the following commands one by one, pressing Enter after each:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /scanos
    bootrec /rebuildbcd
    If you see an error on bootrec /fixboot saying "Access is denied," skip it and continue. If bootrec /rebuildbcd asks to add an installation, press Y and Enter.
  5. Exit and restart. Type exit and press Enter, then click Continue (or restart your PC). Remove the USB drive. If the loop is fixed, Windows will boot normally.
  6. If the loop persists, rebuild the BCD manually. Boot back to the Command Prompt as above, and run these commands:
    diskpart
    list volume
    Note the drive letter of your Windows partition (usually C: but could be D: or E: in the recovery environment). Then exit diskpart by typing exit, and run:
    bcdedit /export C:\BCD_Backup
    c:
    bootrec /rebuildbcd
    Replace C: with the actual drive letter you found. If it says the store is in use, run attrib -h -r -s C:\boot\BCD first, then ren C:\boot\BCD BCD.old, then bootrec /rebuildbcd again.
  7. Check for a corrupted system file. If the loop still happens, run sfc /scannow and dism /online /cleanup-image /restorehealth from the Command Prompt (note: these may take a long time and need internet access).
  8. Disable automatic restart on system failure (if you can reach the layout screen but not the desktop). If you can get to the keyboard layout screen but then Windows crashes, boot to the recovery environment, go to Troubleshoot > Advanced options > Startup Settings, click Restart, then press F8 or 7 to disable automatic restart on failure. This may let you see the actual error code.

Common Mistakes

  • Skipping the bootrec /scanos step. This command tells Windows where your installation is; skipping it can cause the rebuild to fail.
  • Using the wrong drive letter in diskpart. In the recovery environment, your Windows drive might not be C:. Always check list volume and look for the volume with the Windows folder (you can run dir C:\Windows to verify).
  • Forgetting to remove the USB drive. If you leave the USB in, the PC may boot to the installer again, which looks like the loop is still happening.
  • Running bootrec /fixboot on a GPT disk with an EFI partition. This command sometimes fails on UEFI systems; that's normal — continue with the other commands.

Tips

  • Before doing anything, try a simple restart. Sometimes the loop is a one-time glitch.
  • If you have a system restore point, try Troubleshoot > Advanced options > System Restore first — it's less invasive than command-line repairs.
  • If you have a second PC, create a Windows recovery drive (not just an installer) — it includes more repair tools.
  • After fixing the loop, run chkdsk C: /f from an admin Command Prompt to check for disk errors that might have caused the issue.
  • Keep your Windows installation media in a safe place; you'll need it again for future boot problems.

Troubleshooting

If the loop persists after following all steps:

  • Try a different USB port. Some PCs have USB issues during boot; use a rear port directly on the motherboard.
  • Check your BIOS/UEFI boot mode. If your Windows was installed in UEFI mode but the USB is booting in Legacy mode (or vice versa), the repair commands may not work. Enter BIOS (usually Del or F2), find the boot mode setting, and match it to your Windows installation type (check by looking at the disk layout — GPT for UEFI, MBR for Legacy).
  • Run chkdsk C: /f from the Command Prompt. Disk errors can cause boot loops. This may take a while and might need a reboot.
  • If you get a specific error like "0xc000000f" or "0xc0000225", look up that error code — it usually points to a missing or corrupted boot file, which the bootrec commands above should fix.
  • As a last resort, use the "Reset this PC" option from the recovery environment (Troubleshoot > Reset this PC). Choose "Keep my files" to avoid losing personal data, but note that installed apps will be removed.

Frequently Asked Questions

Will I lose my files if I run bootrec commands?

No, bootrec only repairs boot configuration files; it does not touch your personal files. However, if you use the Reset this PC option, you may lose installed apps (but not personal files if you choose "Keep my files").

Why does Windows keep asking for a keyboard layout?

That screen is part of the Windows Recovery Environment. When the boot configuration is corrupted, Windows automatically enters recovery mode, and the first step is to select a keyboard layout. The loop happens because the recovery process fails to find a valid system to boot.

Can I fix this without a USB drive?

If you can access the recovery environment (by pressing F11 or Shift+Restart on the login screen), you can try the same commands from there. But if the loop starts before Windows loads, you'll likely need a USB drive.

How do I create a Windows installation USB on another PC?

Go to Microsoft's official website, download the Media Creation Tool, run it, and select "Create installation media for another PC." You'll need a USB drive with at least 8GB of space.

Is this problem caused by a Windows update?

It can be, especially if the update was interrupted or failed. The repair commands above will usually fix the boot files, but if the update itself is corrupted, you may need to uninstall the latest update from the recovery environment (Troubleshoot > Advanced options > Uninstall Updates).

What if I see "The system cannot find the path specified" when running bootrec?

This usually means the BCD store is missing or in a non-standard location. Run diskpart and list volume to find the correct drive letter, then manually create the BCD store using bcdedit /createstore (but this is advanced — if you're not comfortable, try the Reset this PC option).