Bcdedit

Discussion in 'Windows 10' started by orvillesnorkel, Sep 12, 2016.

  1. orvillesnorkel

    orvillesnorkel MDL Novice

    Jan 7, 2014
    18
    3
    0
    I am trying to create a multiboot usb,
    like the one, you get when you download
    windows 10, with the media creation tool.
    The one, that contains a x86 folder, and a x64 folder
    in the same file, but no source folder.


    I can get the boot menu working,
    with a windows 7, and windows 10 folder.
    And windows starts to boot from my usb,
    but the install stops, and asks for drivers. Probaly
    because, install cant find the files it needs, then
    they are not, in a folder named sources.

    is this impossible to do, or am i missing something, or doing
    anything wrong.

    BOOT




    bcdedit /store I:\BOOT\BCD


    {7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\BOOT\BCD /copy {default} /d “Windows 7 Pro 32 bit”


    {new entry}


    bcdedit /store I:\BOOT\BCD /copy {default} /d “Windows 10 64 bit”


    {new entry}


    bcdedit /store I:\BOOT\BCD /delete {default}


    bcdedit /store I:\BOOT\BCD


    bcdedit /store I:\BOOT\BCD /set {new entry} device ramdisk=[boot]\win7x86\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\BOOT\BCD /set {c{new entry} osdevice ramdisk=[boot]\win7x86\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\BOOT\BCD /set {new entry} device ramdisk=[boot]\win10x64\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\BOOT\BCD /set {new entry} osdevice ramdisk=[boot]\win10x64\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store e:\Boot\BCD /set {new entry} bootmenupolicy legacy


    bcdedit /store I:\Boot\BCD /set {new entry} bootmenupolicy legacy




    EFI


    bcdedit /store I:\efi\microsoft\boot\BCD


    {7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\efi\microsoft\boot\BCD /copy {default} /d “Windows 7 Pro 32 bit”


    {new entry}


    bcdedit /store I:\efi\microsoft\boot\BCD /copy {default} /d “Windows 10 64 bit”


    {new entry}


    bcdedit /store I:\efi\microsoft\boot\BCD /delete {default}


    bcdedit /store I:\efi\microsoft\boot\BCD


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} device ramdisk=[boot]\win7x86\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} osdevice ramdisk=[boot]\win7x86\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} device ramdisk=[boot]\win10x64\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} osdevice ramdisk=[boot]\win10x64\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} bootmenupolicy legacy


    bcdedit /store I:\efi\microsoft\boot\BCD /set {new entry} bootmenupolicy legacy
     
  2. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    426
    526
    10
  3. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    If you only need to boot setup, not upgrade, then you just use bcdedit and point it at the bootx64.wim for 64-bit setup.
    I would recommend also pointing the efi bcd at that as well since you're unlikely to have a 32-bit UEFI system
    You need the following files in the sources directory for this:
    setup.exe
    lang.ini
    boot.wim
    bootx64.wim
    install.wim, install.esd, or install*.swm

    I would make sure to test everything with a vm that has uefi capability before trying to apply to a real machine.
     
  4. orvillesnorkel

    orvillesnorkel MDL Novice

    Jan 7, 2014
    18
    3
    0
    Thanks a lot for the reply's
    This forum is great :)

    As far as i understand, i have been pointing at the wrong boot file,
    and i need a couple of files in my source directory.
    i will try it and see if i can get it working :mushy: