Modify UEFI boot options (efibootmgr alternative)

Snoop05

Senior Member
Is there commandline utility to modify boot entries in EFI? I need to set BootNext flag to one of my loaders but i hate GUI programs since its slow and require lot of time and energy. Any suggestions?

EDIT: Tool for windows (win32/win64 pe)
 


Last edited:

ussnorway

Windows Forum Team
Staff member
Premium Supporter
I assume you want UEFI and yes lots of motherboard makers still have command line options for networked systems but UEFI is open source and there are no, one size matches all, interface... i.e Asus has their codes and MSI has different codes so you need to match the board + not all boards have them.
 


Snoop05

Senior Member
Sorry i dont mean the executable to run from efi, i mean tool for windows (since this is windows forum).
I thought it was obvious.
 


ussnorway

Windows Forum Team
Staff member
Premium Supporter
1. efi is intel (very old) and what started the current Uefi system... it sits under a windows, linux, mac etc op in the same way a bios does, so no Windows does not allow any normal way to interface with these systems because you would still have to reboot anyway.

2. Some motherboard makers (MSI Command Center) have an extra interface aimed at people that want to monitor/ overclock their computers and most of these talk to the efi/ Uefi in order to work.

So to be clear, there are work arounds but the basic answer is no.
 


Snoop05

Senior Member
You probably dont know what i'm talking about...

http://linux.die.net/man/8/efibootmgr
https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface

https://technet.microsoft.com/en-us/library/dd744347(v=ws.10).aspx

Bcdboot can create entry in NVRAM and also change boot order. So windows has access to EFI NVRAM and can modify it.

EDIT:
1. You thought i wanted to run/boot Linux directly from running Windows without reboot.
2. These are GUI programs.
 


ussnorway

Windows Forum Team
Staff member
Premium Supporter
A nice ref for linux codes... a bit outdated but thats fine, whats your point?

https://technet.microsoft.com/en-us/library/dd744347(v=ws.10).aspx

Bcdboot can create entry in NVRAM and also change boot order. So windows has access to EFI NVRAM and can modify it
Yes, back in the year 2009 you could use this tool to get Windows Vista talking to Linux... todays laptops block this tool by default (safeboot) but can still be set with it for legacy systems (xp, vista and 7). Windows 8, 8.1 and 10 use a different base for booting and this tool won't work on them without some major stuffing about.

Now we are 5 posts in and this is the first time you talked about Linux so I didn't assume you wanted it... best of luck with it mate.
 


Snoop05

Senior Member
You probably dont know anything about this, because you still haven't figured out what is the point.

I mentioned Linux in my first post "efibootmgr alternative" - since efibootmgr is Linux program, and we are on Windows forum its obvious that i want Windows program that can do stuff like efibootmgr does. You have no idea about it.

About laptops blocking messing with uefi boot - its not safeboot but Secure Boot.

Who was talking about laptop? PC in general, is desktop, and even if i had laptop, Secure Boot can be disabled.

I really dont think that bcdboot can be used for "talking to Linux" (thats what you said) i wanted to modify UEFI boot order in NVRAM.

Bcdboot create files needed for booting for both legacy (BIOS) systems as well as UEFI systems. For leagacy, this write BOOTMGR (bootloader since NT 6.x) to PBR of system volume and create other boot files. It works on MBR disks only. For UEFI, it copy windows loader (EFI executable binary) and other needed files to ESP (usually 1st partition, few hundred megs. fat32 formatted) and creates new UEFI boot entry in NVRAM. I think its obvious that these are completely different and incompatible (BIOS/UEFI). UEFI booting is supported on all x64 versions of Windows since Vista.

If you still not got it, Bcdboot can create UEFI boot entry in NVRAM, so its possible to work with it from Windows.

These "linux codes" i send you, arent outdated.

Now i'm asking again, is there any efibootmgr alternative for Windows?

EDIT: leave that thread, really, i dont think that you can help me
 


linkstat

New Member
You probably dont know anything about this, because you still haven't figured out what is the point.

I mentioned Linux in my first post "efibootmgr alternative" - since efibootmgr is Linux program, and we are on Windows forum its obvious that i want Windows program that can do stuff like efibootmgr does. You have no idea about it.

About laptops blocking messing with uefi boot - its not safeboot but Secure Boot.

Who was talking about laptop? PC in general, is desktop, and even if i had laptop, Secure Boot can be disabled.

I really dont think that bcdboot can be used for "talking to Linux" (thats what you said) i wanted to modify UEFI boot order in NVRAM.

Bcdboot create files needed for booting for both legacy (BIOS) systems as well as UEFI systems. For leagacy, this write BOOTMGR (bootloader since NT 6.x) to PBR of system volume and create other boot files. It works on MBR disks only. For UEFI, it copy windows loader (EFI executable binary) and other needed files to ESP (usually 1st partition, few hundred megs. fat32 formatted) and creates new UEFI boot entry in NVRAM. I think its obvious that these are completely different and incompatible (BIOS/UEFI). UEFI booting is supported on all x64 versions of Windows since Vista.

If you still not got it, Bcdboot can create UEFI boot entry in NVRAM, so its possible to work with it from Windows.

These "linux codes" i send you, arent outdated.

Now i'm asking again, is there any efibootmgr alternative for Windows?

EDIT: leave that thread, really, i dont think that you can help me

Hello Snoop05.
In Windows you can use BootICE, that can add, delete and modify entries of the NVRAM, in the same way that efibootmgr do.

Greetings!

PS1: I known, this is a very old post, but -at the date- this is the only valid answer to first post "efibootmgr alternative" (in Windows obviously).
PS2: Bootice can be downloaded from many sites on Internet (search on Google or DDG), and come in the DLC Boot Disc too.
 


sebus

New Member
While not Windows, bcfg from Clover bootloader can also do it (while ie booted from USB)

sebus
 


Neemobeer

Windows Forum Team
Staff member
If you have a single booting system with Windows Vista or newer then boot options are not stored in nvram. They are only stored in the BCD store file. EFI will scan drives for and display EFI boot data it finds. If you have a second OS that does store boot options in nvram then you can use the old (but updated) bootcfg tool to display and edit nvram options. If there are no options present in nvram bootcfg will old try and look at the old school boot.ini file.
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top