My laptop came with Windows 10 pre-installed using UEFI and Secure Boot on an SSD, the Windows drive encrypted with Bitlocker. I pulled that SSD and installed Ubuntu on a new SSD.
I bought an external SSD enclosure with a USB-C interface and installed the original Windows SSD into it. If I attach this drive to my USB-C port, turn on the power and go to the BIOS boot options menu, the laptop gives me the option of running the Windows boot manager on the (now external) SSD. When I select the Windows boot manager, Windows tries to boot but fails after a few seconds with a BSOD and en error "Inaccessible boot device". This is a pretty generic error and from my research may have many causes, but I think the issue is that the drive location has changed and something in the boot configuration needs to change in order for me to boot Windows 10 from this device in the external enclosure.
I've looked at the BCD Boot options, but I don't have much experience with Secure Boot, UEFI, etc., and I was hoping someone could point me in the right direction to get the configuration updated so I can boot Windows when I need it.
DISM, which never results with the issues 3rd party solutions always have. See the Imaging section. If something is worth doing, it's worth doing right the first time around. You're trying to get Windows to work in a way Windows has **never** supported (Microsoft tried running a watered-down, minimalist OS in Windows 8 with Windows-to-Go, then abandoned it, but Windows has never supported running the full OS off a USB drive [3x now]). – JW0914 Dec 25 '19 at 16:01DISM(commands under Imaging link in my prior comment), create the required partitions on the Ubuntu SSD (4 in total: WinRE, EFI, MSR, OS - in that order), then apply the images for the WinRE, EFI, & OS partitions to their respective partitions, following steps in the link. – JW0914 Dec 25 '19 at 16:16