Your Windows 11 PC is stuck in a boot loop. You've followed the advice to run bootrec /fixboot, but instead of a fix, you're met with a cryptic "Access is denied" error. If you're reading this, you're probably staring at that exact message right now, wondering if your system is permanently bricked.
Here's the good news: this error is common on modern UEFI systems, and it's almost never a sign of hardware failure. In fact, it's usually a misunderstanding between an old command and new technology. This guide walks you through a step-by-step diagnostic and repair process—from simple checks to advanced fixes—covering both UEFI and Legacy BIOS modes. By the end, you'll have your system back up and running, or at minimum, a clear picture of what's wrong.
Why Does bootrec /fixboot Fail with 'Access Denied' on Windows 11?
Before we dive into fixes, it's worth understanding why this happens. The bootrec /fixboot command isn't broken—it's just outdated for modern hardware.
The UEFI vs. Legacy BIOS Problem
bootrec /fixboot was designed back in the days of Legacy BIOS and MBR (Master Boot Record) disks. In that world, the boot sector was a physical location on your hard drive where boot code lived. The command would write fresh boot code there, and everything worked.
Modern Windows 11 PCs use UEFI (Unified Extensible Firmware Interface) firmware with GPT (GUID Partition Table) disks. Here's the catch: UEFI systems don't have a traditional boot sector. Instead, they read boot loader files directly from a dedicated partition. When bootrec /fixboot tries to write to a boot sector that doesn't exist, Windows returns "Access is denied" because there's literally nothing to write to.
Think of it like trying to mail a letter to a house that was demolished. The postal service isn't refusing you—the address simply doesn't exist anymore.
| Boot Process | Legacy BIOS/MBR | UEFI/GPT |
|---|---|---|
| Boot code location | Master Boot Record (sector 0) | EFI System Partition (FAT32) |
| Partition table | MBR (32-bit entries) | GPT (64-bit entries) |
| Maximum disk size | 2 TB | 9.4 ZB (practically unlimited) |
bootrec /fixboot support | Yes | No (returns "Access is denied") |
The Role of the EFI System Partition (ESP)
The EFI System Partition (ESP) is a hidden, FAT32-formatted partition (typically 100–260 MB) that stores boot loaders. On most Windows 11 installations, this partition doesn't have a drive letter assigned, which means the Windows Recovery Environment (WinRE) can't see it by default.
When you run bootrec /fixboot and get "Access is denied," it's often because WinRE cannot access this hidden partition. Another common culprit is a corrupted Boot Configuration Data (BCD) store within the ESP—the database that tells Windows where to find its boot files.
In my experience troubleshooting these issues, the ESP being inaccessible is the #1 reason for this error. The fix is straightforward once you know how to make that partition visible.
Prerequisites: How to Enter Windows Recovery Environment (WinRE)
You can't run bootrec /fixboot from within a normal Windows session. You need to access the Windows Recovery Environment first. Here are two ways to get there.
Method 1: Boot from Windows 11 Installation USB
If your PC won't boot at all, you'll need a Windows 11 installation USB drive.
- Insert the USB drive and restart your PC.
- Press the boot menu key (usually F12, F10, or Esc, depending on your manufacturer) during startup.
- Select your USB drive from the boot menu.
- When the Windows Setup screen appears, click Next, then select Repair your computer in the bottom-left corner.
- Navigate to Troubleshoot > Advanced Options > Command Prompt.
Method 2: Access WinRE from the Login Screen
If you can reach the Windows 11 login screen, you don't need a USB drive.
- Click the Power icon in the bottom-right corner of the login screen.
- Hold Shift on your keyboard and click Restart.
- Keep holding Shift until the blue recovery screen appears.
- Navigate to Troubleshoot > Advanced Options > Command Prompt.
Either method gets you to the same place: a Command Prompt window where you can run repair commands.
7 Proven Methods to Fix 'Access is Denied' Error
Now let's get to the actual fixes. I've ordered these from simplest to most advanced, so start with Method 1 and work your way down if needed.
Method 1: Run Command Prompt as Administrator (The First Check)
This sounds obvious, but you'd be surprised how often it's the issue. Even in WinRE, the Command Prompt needs administrative privileges to modify boot files.
In the Command Prompt window, check the title bar. It should say Administrator: Command Prompt. If it doesn't, close the window and navigate back to Troubleshoot > Advanced Options > Command Prompt, but this time right-click and select Run as administrator if the option is available.
In most WinRE environments, the Command Prompt is automatically elevated. But if you somehow accessed it through a standard session, this could be your entire problem.
Method 2: Assign a Drive Letter to the EFI Partition with diskpart
This is the core fix for the "Access is denied" error. By assigning a drive letter to the hidden EFI partition, you make it accessible to repair tools.
In the Command Prompt, type the following commands one at a time, pressing Enter after each:
diskpart
list volume
Look for the volume with FAT32 in the File System column and a size between 100 MB and 260 MB. That's your EFI partition. Note its volume number (e.g., Volume 4).
Now run:
select volume 4
assign letter=X
exit
Replace 4 with your actual volume number and X with any unused drive letter. Once you've done this, try running bootrec /fixboot again. If it works, great—you're done. If not, move on to Method 3.
Pro tip: Be careful with volume selection. Assigning a letter to the wrong partition can cause confusion later. Double-check that you're selecting the FAT32 partition, not your Windows installation drive.
Method 3: Rebuild the BCD with bcdboot (The Most Reliable Fix)
In my experience, bcdboot is the superior alternative to bootrec /fixboot on modern systems. Instead of trying to repair damaged records, it rebuilds the entire boot configuration from scratch.
After assigning a drive letter to the EFI partition (Method 2), run:
bcdboot C:\Windows /s X: /f uefi
Replace C:\ with the drive letter of your Windows installation (check with list volume in diskpart if unsure) and X: with the drive letter you assigned to the EFI partition.
The /f uefi flag tells bcdboot to write UEFI-specific boot files. If you're on a Legacy BIOS system, use /f bios instead.
You should see a success message: "Boot files successfully created." This command has saved my bacon more times than I can count—it's the most reliable fix for boot issues on Windows 11.
Method 4: Run bootrec /fixboot from a Windows 11 USB (If You Haven't)
If you've been running commands from within Windows, stop. bootrec /fixboot cannot run from a standard Windows session—it must be run from WinRE, which typically requires booting from installation media.
Once you're in WinRE via a USB drive, run the full bootrec sequence:
bootrec /fixmbr— Writes a new Master Boot Record (only relevant for Legacy BIOS systems)bootrec /fixboot— Writes a new boot sector (this is the command that's failing)bootrec /scanos— Scans all disks for installed Windows operating systemsbootrec /rebuildbcd— Rebuilds the Boot Configuration Data store
If /fixboot still returns "Access is denied" after this sequence, the issue is almost certainly the hidden EFI partition, and you should focus on Methods 2 and 3 instead.
Method 5: Check and Switch Firmware Mode (UEFI vs. Legacy)
Sometimes a BIOS update or CMOS reset silently switches your firmware mode. If your system was installed in UEFI mode but the firmware is now set to Legacy BIOS, Windows won't boot—and repair commands will fail.
To check your current firmware mode from WinRE:
diskpart
list disk
Look at the GPT column. If there's an asterisk (*), your disk uses GPT and requires UEFI mode. If there's no asterisk, it uses MBR and requires Legacy BIOS mode.
If there's a mismatch, restart your PC and enter the BIOS/UEFI setup (usually F2, F10, F12, or Delete during startup). Look for a Boot Mode or CSM option and switch it to match your disk's partition style.
Method 6: Use System File Checker (SFC) and DISM as a Follow-Up
Sometimes the boot issue is a symptom of deeper system file corruption. Running SFC and DISM can fix underlying problems that bootrec can't touch.
In the Command Prompt, run:
sfc /scannow
This scans and repairs corrupted system files. It can take 15–30 minutes, so be patient.
After SFC completes, run:
Dism /Online /Cleanup-Image /RestoreHealth
This repairs the Windows system image itself. Note that DISM requires internet access to download healthy files from Windows Update—if you're offline, it may not work.
I typically recommend running these after fixing the boot issue, not before. They're a good follow-up to ensure no lingering corruption causes future problems.
Method 7: Run Windows Startup Repair as a Last Resort
Startup Repair is Windows' automated boot-fixing tool. It's less precise than manual commands but can handle minor BCD corruption on its own.
From WinRE, navigate to Troubleshoot > Advanced Options > Startup Repair.
The tool will scan for boot issues and attempt fixes automatically. It's safe to run, but in my experience, it's less effective against severe EFI partition damage. If it completes and Windows still doesn't boot, return to Method 3 and rebuild the BCD manually.
How to Diagnose the Root Cause: A Decision Tree
Before you run more commands, take a moment to diagnose the root cause. This can save you hours of frustration.
Is Your Drive Intermittently Detected in BIOS?
If your drive disappears from BIOS, requires multiple boot attempts to detect, or shows up under different identifiers each time, stop all repair attempts immediately. This is a hardware issue, not a software one.
Warning signs of hardware failure:
- SMART errors reported in BIOS
- Clicking or beeping sounds from the drive (HDDs)
- Drive becomes invisible after a reboot
- Repair commands complete but the next reboot fails identically
If you see any of these, create a disk image immediately if possible, then contact a professional data recovery service. Running repair commands on a failing drive can push your data out of reach.
Did the Error Appear After a BIOS Update or Clone?
If the error appeared right after a BIOS update, CMOS battery replacement, or disk cloning, the cause is likely a firmware mode switch or a botched EFI partition copy.
- After BIOS update/CMOS reset: Check firmware mode (Method 5). Reversing the BIOS change may restore boot without any disk modifications.
- After cloning: The cloning tool likely didn't preserve the EFI partition correctly. Use Method 3 (
bcdboot) to rebuild boot files from scratch.
Preventing 'Access is Denied' Errors in the Future
Once you've fixed the issue, here's how to avoid it happening again.
Best Practices for Disk Management and Updates
- Create regular system restore points. Before any major change—BIOS update, driver installation, disk cloning—create a restore point. It takes 30 seconds and can save you hours of troubleshooting.
- Use manufacturer tools for BIOS updates. Third-party BIOS flashing tools can switch firmware modes unintentionally. Stick with the manufacturer's official utility.
- Choose reliable cloning software. Not all cloning tools handle EFI partitions correctly. If you're cloning to an SSD, use software that explicitly supports UEFI/GPT cloning.
- Keep a Windows 11 installation USB handy. You never know when you'll need it, and creating one takes about 15 minutes.
- Back up your data regularly. This is the one habit that makes every other tip optional. If you have a recent backup, even a catastrophic boot failure is just an inconvenience.
Frequently Asked Questions
Why does bootrec /fixboot say 'Access is denied' on Windows 11?
The command is designed for Legacy BIOS systems and fails on UEFI systems because there's no traditional boot sector to write to. Additionally, the EFI System Partition is hidden and inaccessible without a drive letter, which triggers the "Access is denied" error.
How do I run bootrec /fixboot as administrator in Windows 11?
You must boot into the Windows Recovery Environment (WinRE) from a USB drive or the login screen. The Command Prompt in WinRE is automatically elevated, but you must ensure you're not in a standard Windows session.
What is the difference between bootrec /fixboot and bcdboot?
/fixboot writes a new boot sector, which is obsolete on UEFI systems. bcdboot rebuilds the entire Boot Configuration Data (BCD) store and copies boot files from scratch, making it the more reliable fix on modern systems.
Can I fix 'Access is denied' without a Windows 11 installation USB?
Yes, if you can reach the login screen, use the Shift + Restart method to enter WinRE. If you can't boot at all, you'll need a USB drive to access the recovery environment.
Final Thoughts
The bootrec /fixboot access is denied windows 11 error is frustrating, but it's rarely catastrophic. In most cases, the fix comes down to making the EFI partition accessible and rebuilding the BCD with bcdboot. The key is diagnosing the root cause before running commands—especially if you suspect hardware issues.
If you've tried all seven methods and still face issues, or if you suspect a hardware failure, don't risk further data loss. Contact a professional data recovery service for a free diagnostic. Sometimes the smartest move is knowing when to stop.