IT WILL BLUESCREEN, OR FREEZE AND THEN BLUESCREEN YOUR PC, DONT WORRY, THATS OK.
2
Boot from USB installer
After bluescreening, boot up from your USB flash drive (the Windows installer).
Upon booting into the Windows installer, click "Repair your computer" in the bottom-left corner, or on newer versions of Windows select the "Repair Windows" option.
Repair option
3
Open Troubleshoot → Command Prompt
Select "Troubleshoot" in the Windows repair tool.
Troubleshoot
Click "Command prompt".
Command Prompt
4
Use diskpart to find volumes
In the opened Command Prompt, type the following commands in order:
diskpart
list volume
Find the volume that contains your Windows installation (format type: NTFS).
Then type (replace volume number with your actual volume number, e.g. 0):
select volume *volume number*
Example:
select volume 0
(You MUST type your volume number without the asterisks.)
5
Assign drive letter to Windows volume
Type:
assign letter=N
6
(Optional) Find and assign FAT32 volume
Find the volume whose INFO row is empty and which is the second largest (format type: FAT32).
If you don't have a FAT32 volume, skip this step and the next.
Then select it (replace volume number):
select volume *volume number*
Example:
select volume 3
Then assign a letter:
assign letter=Z
7
Exit diskpart
Type:
exit
8
Rebuild boot files
If you have a FAT32 volume, run:
bcdboot N:\Windows /s Z: /f UEFI
If you do not have a FAT32 volume, run:
bcdboot N:\Windows
9
Finish and reboot
Type:
exit
Proceed to boot into Windows.
10
Cleanup boot entries in Windows
After booting into Windows, press WIN + R and type msconfig.
Go to the Boot tab and remove all Windows entries except the one marked "Default OS".