We can do one of the two things now.
- Delete the EFI partition and recreate it.
(or)
- Put back the old BCD (which was exported earlier).
- Deleting the EFI partition and recreating it.
Run:
- diskpart
- list volume
- sel volume # --- Carefully select the volume number of the EFI boot - 100 MB FAT32 partition.
- del par override
- cre par EFI size=100
- format fs=fat32 quick
- assign letter=y
- exit
- bcdboot D:\Windows /s Y: /f UEFI
- bcdedit
Note: If a command fails to run correctly, please do not proceed further.