If while carrying out any command on bcedit.exe, you receive the following message:

The boot configuration data could not be opened

Try the following:

Run CMD as administrator and follow the procedure.

If it does not work you may have to repair BCD. You can manually rebuild the Boot Configuration Data store by using the Bootrec.exe tool in the Windows Recovery Environment or you can use this free tool to repair BCD.