In this section the commands for creating a boot menu with three separate entries has been broken down to illustrate the steps involved. A BCD Store will be created and then edited to add boot entries for three different versions of WinPE -
In the examples below we will create a boot menu for x86.wim (RAM boot), x64.wim (RAM boot) and a Flat Boot WinPE for use on BIOS firmware (note the paths to winload.exe. This will hopefully give you an idea of the steps involved so that you can adapt them for your own setup (changing the filenames as appropriate).
After creating the BIOS BCD store it should be copied to the \boot folder.
The first step is to create a new BCD store -
Now add an entry for bootmgr -
Add an entry for x86.wim -
Add an entry for x64.wim -
Add an entry for a Flat Boot WinPE -
Now putting this all together in one script (the text below has become wrapped - see here for an easier to read version) -
In the examples below we will create a boot menu for x86.wim (RAM boot), x64.wim (RAM boot) and a Flat Boot WinPE for use on UEFI firmware - the entries are almost identical to those used on BIOS firmware with the only difference being the path to winload.exe being changed to winload.efi.
After creating the UEFI BCD store it should be copied to the \EFI\Microsoft\boot folder.
The first step is to create a new BCD store -
Now add an entry for bootmgr -
Add an entry for x86.wim -
Add an entry for x64.wim -
Add an entry for a Flat Boot WinPE -
Now putting this all together in one script (the text below has become wrapped - see here for an easier to read version) -