bcdedit is having big time delay

0

I want to read and set default entries in Windows Boot Manager from my app by bcdedit. But bcdedit is very slow. For response from bcdedit I must wait about 16 seconds. Why is bcdedit too slow or how to mange Windows Boot Manager faster?

For example msconfig does what I want to do automatically in my program but works without time delay. How can I do it as fast as msconfig?

Misaz

Posted 2015-12-23T21:21:48.473

Reputation: 426

Answers

0

BCDedit is pretty fast on BIOS.

BCDedit could be slower on UEFI because it syncs NVRAM with BCD and BCD copy in registry. (On BIOS there is no NVRAM)

NVRAM holds UEFI boot variables. BCD on UEFI contains a copy of some NVRAM boot variables like Windows boot manager entry from disk, attachable boot devices like USB, DVD.

snayob

Posted 2015-12-23T21:21:48.473

Reputation: 4 044

Is there any other option how to do it fast on UEFI? – Misaz – 2015-12-24T12:17:48.787

If you don't change {fwbootmgr}, {bootmgr}, or efi loaders bcdedit should be fast enough. I don't know how Windows manages internally the sync between BCD, registry and NVRAM and how exactly it is triggered. I can hardly imagine a faster way of changing BCD than using bcdedit (written by M$ system programmers). – snayob – 2015-12-27T09:18:58.673