While fixing the Boot Configuration Data (BCD) on your computer you may encounter “Access is denied” message in command prompt window. If you are seeing this message you won’t be able to fix the boot related issue unless you take care of the problem first. To do so, follow these simple steps on your computer-
Fix- 1 Recreate EFI structure and reconfigure the boot files-
Recreating the EFI structure will help you to solve this issue.
1. Press Windows Icon+I to open Settings window.
2. Now, click on “Update and Security“.
3. Now, on the left pane, click on “Recovery“.
4. Then, under “Advanced Startup” section, click on “Restart Now“.
5. In Choose an option window, click on “Troubleshoot“.
6. In Troubleshooting window, click on “Advanced options“.
7. In Advanced options window, click on “Command Prompt“.
8. In Command Prompt window, copy-paste these two commands one-by-one and hit Enter to execute both of the commands sequentially on your computer.
diskpart list disk
9.Again copy-paste and modify these commands in Command Prompt window one-by-one and hit Enter after each of them.
select disk <your disk no.> list vol
[NOTE– Replace the “<your disk no.>” with the number of HDD drive on which the Windows is installed.
For this computer, it is “Disk 0“. So the command will be like this-
select disk 0]
10. Again copy-paste this command in Command Prompt and then hit Enter to select the System reserved volume.
select vol <volume no.>
[NOTE– Replace the “<volume no.>” which is declared as “System reserved” in the list of volumes. If you don’t see ‘System Reserved‘ in the list of volumes, it is the drive where Windows is installed.
Example- For us, it is “C:” drive where Windows is installed, so it is ‘Volume 2′. So the command will be –
select vol 2
11. Now, you have to assign a new drive letter to the partition. Copy-paste this command in Command Prompt window and hit Enter to do so.
Upon completion, you will see this message – ‘diskpart successfully assigned the drive letter’.
12. In order to exit the diskpart, type this command and press Enter.
13. Now, all it is left to copy-paste this commands sequentially in Command Prompt and hit Enter after each of these commands to execute them sequentially.
md \efi\microsoft\boot\ cd /d V:\efi\microsoft\boot\
A new boot directory will be created.
14. Now, what is left is to do is to fix the boot process on your computer.
Simply, copy these commands in Command Prompt one by one and hit Enter after each of them.
bootrec /fixboot bcdboot c:\windows /l en-us /s V: /f all
Close Command Prompt window.
15. Coming back to Troubleshooting window, click on “Continue” to normally boot into Windows 10.
Your problem will be fixed.
Sambit is a Mechanical Engineer By qualification who loves to write about Windows 10 and solutions to weirdest possible problems.