The old F8 magic

Taosd

Well-Known Member
hey folks, just me.

I'm not sure if this has been mentioned or queried before, but my cousin pointed me towards a video which enables the wonderful F8 during boot back in windows 10 and 11

using the good old CMD run as admin type

bcdedit /set {default} bootmenupolicy legacy

to enable it

and

bcdedit /set {default} bootmenupolicy standard

to disable it.

If this has been covered or mentioned before, please forgive the double post, if not, then maybe this little nugget can help someone.
 
I use this command line option if I need to enter safe mode.

bcdedit /set {bootmgr} displaybootmenu yes

The above command will give you the option to press F8 to enter advance boot options. The command below puts it back to default.

bcdedit /set {bootmgr} displaybootmenu no
 
I use this too. It is very useful for some situations where it is not possible to boot and you may want to try entering safe mode or using the prompt to solve problems.
Wonder which prize unit came up with the idea of having to boot the os so you could boot into safe mode when you cant boot into the os which is why you fikkin needed safe mode in the first damn place. Wonders will never cease.

Hey MS
Capture,,, - Copy.JPG
 
Last edited:
sorry for necrobumping -
no idea if i should start a new thread for this -
the command requires elevation - so i tried adding it into the post setup commands top section (not user) - two ways -

first in the first column: "bcdedit" and in the second "/set {default} bootmenupolicy legacy"
secondly in the first: "cmd" and in the second "bcdedit /set {default} bootmenupolicy legacy"

both ways seem to have no effect - only works if i run the command manually after install in an elevated prompt.

How can i integrate this into my iso?
 
Post-Setup (Machine):
Command -> bcdedit​
Parameters -> "/set {default} bootmenupolicy legacy"​

Don't forget it doesn't take effect until the next reboot. If you wanted to update the install image, update the BCD store in the mounted image's folder. Then continue on and apply other changes.

bcdedit /store C:\path\to\NLTmpMnt\boot\bcd /set {default} bootmenupolicy legacy
 
Post-Setup (Machine):
Command -> bcdedit​
Parameters -> "/set {default} bootmenupolicy legacy"​

Don't forget it doesn't take effect until the next reboot.
Is basically what i've done and tried to describe - and it plainly didnt work. Just rebuild/retried an iso right now and tested inside a vm after reboot - still no success before i manually run the command by hand.
If you wanted to update the install image, update the BCD store in the mounted image's folder. Then continue on and apply other changes.

bcdedit /store C:\path\to\NLTmpMnt\boot\bcd /set {default} bootmenupolicy legacy
By "install image" you mean - from the iso - the installer/setup itself or the image to get installed?

Will test this next - but this isnt a way i like/hope to achieve -
as i want to automatically build a lot of different iso's in the next months/years preferably from one config file -
also if i want to apply this to multiple editions inside one iso i'll need to write my own script for automounting/configuring them -
kind of defeats the purpose of ntlite - as then the stretch to also integrate my other ntlite configs into this wouldnt be that big.

XML:
...
<Execution>
        <Remove></Remove>
        <Change></Change>
        <Add>
            <Item type="Command">
                <Path>bcdedit</Path>
                <Params>/set {default} bootmenupolicy legacy</Params>
                <Index>0</Index>
            </Item>
            <Item type="Command">
                <Path>cmd</Path>
                <Params>bcdedit /set {default} bootmenupolicy legacy</Params>
                <Index>1</Index>
            </Item>
...
        </Add>
    </Execution>
...
 
Last edited:
I'm not sure what's happening on your system. Here's my VM experiment:

1. Run bcdedit /set {default} bootmenupolicy standard
Confirmed bootmenupolicy = Standard​

2. Edit SetupComplete.cmd by hand (to speed up testing):
Code:
@echo off
echo before > C:\log.txt
bcdedit /enum >> C:\log.txt
echo default >> C:\log.txt
bcdedit /set {default} bootmenupolicy legacy >> C:\log.txt
bcdedit /enum >> C:\log.txt
echo current >> C:\log.txt
bcdedit /set {current} bootmenupolicy legacy >> C:\log.txt
bcdedit /enum >> C:\log.txt
del /q /f "%0"

3. C:\log.txt confirms bcdedit has updated.
Code:
before

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows 11
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {f11fd26e-c150-11ed-8dc6-a7e028e1adc5}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
nx                      OptIn
bootmenupolicy          Standard

default
The operation completed successfully.

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows 11
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {f11fd26e-c150-11ed-8dc6-a7e028e1adc5}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
nx                      OptIn
bootmenupolicy          Legacy

current
The operation completed successfully.

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows 11
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {f11fd26e-c150-11ed-8dc6-a7e028e1adc5}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {f11fd26c-c150-11ed-8dc6-a7e028e1adc5}
nx                      OptIn
bootmenupolicy          Legacy
 
Back
Top