Change from IDE to AHCI after installing Windows
Run msconfig (right click far left bottom corner of desktop then left click run, type msconfig).
Click boot tab, mark safe boot, restart, change to AHCI in BIOS, boot, Windows boots in safe mode.
Run msconfig again, boot tab unmark safe boot, restart PC.
PC works fine. Don't mess with regedit you only need to boot in safe mode to fix this, very simple.