Deleted Windows 10 boot manager

I had two separate EFI partitions. I formatted both of them and installed grub on one (to use Linux), meaning I deleted Windows boot manager files. I flashed an installation medium and opened cmd in it. When I type

bcdedit /set {bootmgr} path \EFI\grub\grubx64.efi

Or

bootrec /rebuildbcd

It finds Windows but I get the same error for both commands: “The requested system device cannot be identified due to multiple indistinguishable devices potentially matching the identification criteria.”

What should I do? Should I delete my grub files and retry? If I delete grub files I can fix them by booting into the Artix installation medium and this time configuring grub into the correct EFI partition (same as Windows).

Read more here: Source link