October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk6 min

How to Repair Windows Boot Errors Using Command Prompt

Start with WinRE Startup Repair, then use Command Prompt only for the boot, disk, or Windows-file problem your symptoms and verified partitions indicate.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If your Windows 10 or Windows 11 PC will not start, enter Windows Recovery Environment (WinRE) and try Troubleshoot > Advanced options > Startup Repair before changing boot files from Command Prompt. Use manual commands only when the symptoms point to a specific problem, and first confirm which drive letter WinRE assigned to Windows: it may not be C:.

First identify where startup is failing

A PC that cannot start Windows does not always have a Windows boot-file problem. Startup passes through firmware (BIOS or UEFI), the boot loader, and then the Windows kernel. The stage that fails helps determine whether Command Prompt repair is relevant.

  • Possible boot-loader failure: a black screen with a blinking cursor, or messages such as “BCD missing or corrupted,” “Boot file or MBR corrupted,” or “Operating system Missing.”
  • Possible firmware or hardware problem: the computer stops during BIOS initialization, before Windows begins loading. Disconnect external peripherals as an initial diagnostic step; boot commands cannot fix a hardware fault.

These signs narrow down the likely stage; they do not prove a particular cause. Bootrec commands are not general-purpose startup fixes.

Enter WinRE and try Startup Repair

WinRE includes both Startup Repair and Command Prompt. Windows may open it automatically after repeated startup failures. If it does not, start the PC from Windows installation media and choose Repair my PC rather than starting an installation. A bootable USB drive can provide that route when you do not have another recovery option.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
5-in-1 Win Repair & Reinstall Bootable USB Flash Drive – Fix, Recover, or Reinstall Windows 11 (amd64 + arm64) / 10/7 - Includes PE Tools, Driver Pack, Antivirus, Data Recovery & Password Reset
  • Dual USB-A & USB-C Bootable Drive – compatible with nearly all Windows PCs, laptops, and tablets (UEFI & Legacy BIOS). Works with Surface devices and all major brands.
  • Fully Customizable USB – easily Add, Replace, or Upgrade any compatible bootable ISO app, installer, or utility (clear step-by-step instructions included).
  • Complete Windows Repair Toolkit – includes tools to remove viruses, reset passwords, recover lost files, and fix boot errors like BOOTMGR or NTLDR missing.
  • Reinstall or Upgrade Windows – perform a clean reinstall of Windows 7 (32bit and 64bit), 10, or 11 (amd64 + arm64) to restore performance and stability. (Windows license not included.). Includes Full Driver Pack – ensures hardware compatibility after installation. Automatically detects and installs drivers for most PCs.
  • Premium Hardware & Reliable Support – built with high-quality flash chips for speed and longevity. TECH STORE ON provides responsive customer support within 24 hours.
  1. In WinRE, select Troubleshoot > Advanced options > Startup Repair.
  2. Select the Windows installation if prompted, then follow the on-screen instructions. Microsoft describes Startup Repair as a built-in recovery tool for problems preventing Windows from starting; it attempts repairs for common causes, including damaged system files, corrupted BCD, damaged MBR, incompatible drivers, and registry errors.
  3. If prompted, provide the BitLocker recovery key. Keep the key available before starting recovery because an encrypted device may require it.

Startup Repair may not resolve every failure. If it cannot fix the problem, return to Troubleshoot > Advanced options and use Command Prompt only for a repair that matches the symptoms.

Confirm the Windows drive letter before running commands

Drive letters can differ in WinRE from the letters you normally see in Windows. Do not assume the installed system is C:. A command aimed at the wrong volume may inspect or change the wrong installation.

  1. From WinRE, open Troubleshoot > Advanced options > Command Prompt.
  2. At the prompt, run bcdedit and inspect the Windows Boot Loader entry. Its osdevice field identifies the volume associated with that entry in the recovery environment.
  3. Confirm that the identified volume contains the Windows folder before using it in an offline repair command. Also identify the system partition separately if a boot-file repair requires it.

Windows and system partitions are not necessarily the same volume. Their layout and the commands that apply depend on the PC’s firmware mode and partition arrangement. Microsoft’s examples in some troubleshooting guidance are specific to their scenario, not universal client-PC recipes.

Choose a boot repair by the error

Use Bootrec for a matching boot-code, boot-sector, or BCD problem—not as a sequence to run on every computer. The commands below address distinct parts of startup and do not repair hardware faults or every kind of partition damage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Symptom or target Command or approach What it does and what to watch for
Damaged master boot code bootrec /fixmbr Writes new master boot code. It overwrites the master boot code only; it does not repair partition-table corruption.
Damaged boot sector bootrec /fixboot Writes a new boot sector. Use it only when the failure points to that component and the PC’s boot configuration makes the operation appropriate.
Windows installation missing from boot configuration bootrec /scanos, then consider bootrec /rebuildbcd /scanos searches for Windows installations not currently listed in the BCD store. If a BCD rebuild is warranted, first follow a procedure appropriate to the identified system volume; do not rename or replace a BCD file at an assumed C: path.
Missing or corrupted boot files on the system partition bcdboot D:Windows (example only) BCDBoot recreates boot files using the Windows installation as its source. Replace D: with the verified Windows volume, and ensure the intended system partition and firmware layout are understood before proceeding.

The BCDBoot command shown is Microsoft’s basic example, not a universal command for every machine. The correct target and options depend on the system partition and boot configuration. Do not format a system partition as a troubleshooting shortcut.

If bootrec /fixboot returns “Access is denied”

That message does not establish that every PC needs the same workaround. Do not apply an arbitrary drive-letter, partition-formatting, or boot-file replacement recipe. Recheck which Windows installation and system partition are involved, then use a recovery procedure that matches the machine’s firmware mode and partition layout. If those cannot be identified confidently, stop before changing partitions and choose a less disruptive recovery option or get qualified help.

Check for disk or protected-system-file corruption

Use disk and file checks when the symptoms or prior diagnostics point to volume or Windows-file corruption. Verify the offline paths first; placeholders below must be replaced with the actual volumes identified in WinRE.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]

Check the Windows volume

Microsoft’s WinRE troubleshooting example uses chkdsk /f /r <WindowsVolume>: to check and attempt repairs on the specified volume. Replace <WindowsVolume> with the verified letter, for example D if that is the Windows volume in this recovery session. The scan can take a long time. If it reports errors it cannot repair, further diagnosis is needed; do not interpret an unsuccessful repair as proof that a boot command will solve the underlying problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run System File Checker against offline Windows

For protected system-file corruption in an installation that is not currently running, SFC supports offline boot and Windows-directory paths:

sfc /scannow /offbootdir=<boot-volume> /offwindir=<Windows-volume>Windows

Substitute the verified paths for the target installation. The boot-volume and Windows-volume paths must both point to the intended system; do not copy the example mechanically if the partition layout differs.

Use DISM only with the right image and repair source

DISM can check the health of a Windows image and attempt repair with /RestoreHealth. The right command depends on whether Windows is running or you are servicing an offline image, as well as whether a suitable repair source is available. An online DISM command is not automatically appropriate for an offline installation, and a repair may not succeed without an accessible source. Confirm the target image and source requirements before running it rather than treating one command as a universal fix.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Consider recovery options before reset or reinstall

If targeted repairs do not restore startup, choose the next option according to what changed and how important the files are. In WinRE’s Troubleshoot > Advanced options, consider System Restore or Uninstall updates when the failure followed a recent change. Microsoft says System Restore rolls back system files and settings without affecting personal files; uninstalling an update is intended for problems that began after an update and does not affect personal files or apps.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Reset this PC and reinstalling Windows have different consequences from those options. Reset offers keep/remove choices, while reinstallation is more consequential. Check the selected option’s effects and protect important data with a backup where possible before proceeding. BitLocker may require the recovery key for WinRE options.

Recovery path Best fit Main trade-off
Startup Repair First attempt for common startup failures. Requires little manual diagnosis, but may not find or fix the cause.
Bootrec A specific MBR, boot-sector, or BCD symptom. Targeted and configuration-sensitive; /fixmbr does not repair every partition-table problem.
BCDBoot Missing or corrupted system-partition boot files. Needs correct Windows and system-partition identification.
Offline SFC or DISM Protected system-file or Windows image/component-store corruption. Needs correct offline paths; DISM repair also depends on a suitable source.
System Restore, update removal, reset, or reinstall A failure tied to a recent change or broader Windows damage. Effects on files and settings vary by option; check them and backup status before proceeding.

Windows 10 and Windows 11 support context

The recovery guidance applies to Windows 10 and Windows 11. Microsoft ended support for Windows 10 on October 14, 2025. A repair may restore a Windows 10 PC to operation, but it does not change that support status; plan separately for a supported operating system if the PC is eligible.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.