Open a command prompt with an installation media:
- Boot on a Windows 10 installation media.
- Choose a language and click "Next".
- "Repair your computer"
- "Command Prompt"
Restore the EFI/Microsoft
directory:
diskpart
> list disk
> select disk [0-9] # the EFI partition is usually on disk 0
> list partition
> sel partition [0-9] # the EFI partition is usually the first
> assign letter=Z:
> exit
bcdboot C:\windows /s Z: /f UEFI /v # /s for mountpoint
# /f for firmwaretype
# /v for verbose
exit
For example after a Linux uninstall.
bootrec /fixmbr
https://fr.wikipedia.org/wiki/Master_boot_record#Microsoft_Windows