How to edit windows boot manager for Win11 and Win7 dual boot?

Rahul Deb Aru 0 Reputation points
2024-10-17T12:10:23.18+00:00

I have a laptop with two separate drives having separate Windows installations, one with Win11 another Win7. I installed the Win7 after I had the Win11 installed in one drive. I had changed the boot order in the BIOS so the Windows installations do not know about each other. How can I make an update to Windows boot manager to add both entries so that I do not have to change the boot device priority from BIOS every time I want to switch?

For all the other suggestions, please know that I need both of these Windows for certain specific purpose and I know the security risk. The laptop is very old, it supports Windows 7, and Windows 11 runs just fine as per reduced requirements.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Abhishek karn 0 Reputation points
    2024-10-17T12:52:53.79+00:00

    To update the Windows Boot Manager and add both entries for Windows 11 and Windows 7 without changing the boot device priority in BIOS, you can use the bcdedit tool. Here’s how to do it:

    Step 1: Boot into Windows 11

    Boot into your Windows 11 installation.

    Step 2: Open Command Prompt as Administrator

    Press Win + X and select Windows Terminal (Admin) or Command Prompt (Admin) from the menu.

    Step 3: Check Existing Boot Entries

    Type the following command and press Enter:

    bash

    Copy code

    bcdedit /enum

    This command will display the current boot entries. Note the identifiers (GUIDs) of your existing Windows installations if you see any.

    Step 4: Add a New Entry for Windows 7

    You will need to add an entry for the Windows 7 installation. To do this, run the following command (replace {GUID} with the actual GUID of your Windows 7 installation; if it’s not available, you will need to use the disk and partition information):

    bash

    Copy code

    bcdedit /copy {current} /d "Windows 7"

    This command copies the current entry (Windows 11) and creates a new entry for Windows 7. If successful, it will return a new identifier.

    Step 5: Set the Device and Path for Windows 7

    Now, you need to specify the device and path for the Windows 7 installation. First, identify the drive letter where Windows 7 is installed. Assuming it's on drive D: and the \Windows directory is located there, use:

    bash

    Copy code

    bcdedit /set {new-guid} device partition=D:

    bcdedit /set {new-guid} path \Windows\system32\winload.exe

    Replace {new-guid} with the identifier returned in the previous step.

    Step 6: Set the Timeout

    Optionally, you can set a timeout for the boot menu so you have time to choose which OS to boot. Use the following command:

    bash

    Copy code

    bcdedit /timeout 10

    This will set the timeout to 10 seconds.

    Step 7: Reboot and Test

    Reboot your laptop. You should now see the Windows Boot Manager with options for both Windows 11 and Windows 7. Select the OS you want to boot into.

    Troubleshooting

    If you don't see both entries after rebooting, double-check the commands you entered for any errors.

    If the new entry for Windows 7 doesn't boot, ensure that the drive letter and paths are correctly set.

    You might need to run bcdedit /enum again to verify the changes you made.

    [Moderator edit: Post generated with AI - Please cite where you got the information from. AI usage policy on Q&A found here: https://learn.microsoft.com/en-us/answers/support/ai-usage-policy ]


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.