Windows endless boot

So you performed a UEFI Windows install on a GPT partition. The PC boots, gets to the Windows logo and then reboots, prompting you to enter Safe mode.