Bootcamp installation completely messed up, unusable
Hi all,
Need some help getting Windows up and running again on my Late 2015 iMac 5K. Please note that I have a macOS backup and nothing is wrong with the macOS partition. I don't have a Windows 10 backup. There's nothing critical on Windows, just a couple games, but it would be nice to have it up and running again without a clean reinstall, if possible.
It started completely randomly. I'm pretty sure an automatic update must've messed with the boot partition or something, as one night I shut down the computer (and noticed it was updating), and the next day, I booted it and it went straight to the Windows recovery screen.
So, the first thing I did was find Loner T's steps on here on using gdisk to create a new MBR. When I did that, I still got the recovery screen, this time with error 0xc000000f "The Boot Configuration Data for your PC is missing or contains some errors. File: \EFI\Microsoft\Boot\BCD."
Now I didn't have a standalone USB drive on hand to create a Windows 10 image and boot to the installer to use Bootrec.exe, so in the impatience of the moment, did something that I now feel was extremely dumb: I mounted the EFI partition, and copied the BCD file from the Windows 10 Anniversary Update ISO that I downloaded from the MS website, and copied it into the /EFI/Microsoft/Boot folder. This didn't work. I started getting Error 0xc000000e "A required device isn't connected or can't be accessed."
Fast forward to today, I got a standalone USB flash drive and made an image using the aforementioned ISO and booted to it and used Command Prompt to attempt Bootrec.exe /RebuildBcd (and tried the other "fix" ones too). When this didn't work, I tried everything else: Startup Repair, use the USB image to recover, and even tried the MBR steps again to no avail.
In its current state, when I option-boot the iMac to EFI, there are now suddenly TWO Windows partitions that show next to macOS. They both boot to the blue Windows recovery screen showing Error code 0xc0000225, first showing the same "required device" message as above, and if I hit Enter to get it to try again, the message becomes "The application or OS couldn't be loaded because a required file is missing or contains errors." and points to \Windows\system32\winload.efi.
Is there any way out of this, or is Windows completely unrecoverable? If the former, I would appreciate any help I can get. If the latter, I wanted to make sure I can just use Boot Camp Assistant to completely get rid of Windows, cleanly.
Thank you so much in advance!
iMac with Retina 5K display, Windows 10, macOS Sierra 10.12.5