How to restore the "System Reserved Partition"/EFI partition/windows boot manager


This is a follow-up to

Out of curiosity I deleted that 100 MB partition. Here is how I recovered:
Enter the commandline in a recovery environment (e.g. windows install disk).

list disk
select disk # Note: Select the disk where you want to add the EFI System partition.
list partition
create partition efi size=100
format quick fs=fat32
assign letter S # pick any free drive letter

bootrec /scanos # Note: Note the volume letter where the Windows OS is installed, maybe C

bcdboot C:\windows /s S:

This recreates the necessary /EFI/Boot/bootx64.efi and /EFI/WINDOWS files on the efi partition.