You should use the standalone Registry Editor. To solve this problem, I prefer to use a recovery environment, which can be accessed, for example, from the operating system installation disk.
To open Registry Editor using an installation DVD or USB storage Follow these steps:
Run your computer using the installation CD. You may have to select a DVD / CD or USB drive as the first boot device in BIOS settings
To do this:
-turn on the computer and press the DEL or F1 or F2 or F10 key to enter the BIOS (key, enter the BIOS, depending on the computer manufacturer);
-in the BIOS menu, find the Boot Order (This option is usually located within the Advanced BIOS menu options);
-in the boot up sequence, select CD / DVDRW or USB (depending on the type of media for installing windows files) as the first boot device.
-Save the changes and restart the computer by pressing F10.
After rebooting the system, the computer starts booting from the installation disk.
After downloading, click on "Next" on the first screen, then select "System Restore".
Click on "Next" and start the command prompt, type regedit and press Enter.
In the Registry Editor, select the HKEY_LOCAL_MACHINEA branch in the "File" menu, click "Load Hive".
Open the drive where Windows is installed.
Go to the Windows \\ system32 \\ config directory, select the system file, and click "Open". Enter a name (for example, Offline), and then click OK. Expanding the branch of HKEY_LOCAL_MACHINE, you will see a partition created (in our example it is called Offline). Expand the new section and go to the next subkey:
HKEY_LOCAL_MACHINE \\ Offline \\ ControlSet001 \\ Services \\ msahci
open the option start and change the value to 0 (zero), and then click OK.
Perform the same procedure in the item: HKEY_LOCAL_MACHINE \\ Offline \\ ControlSet001 \\ Services \\ pciide
If you are using RAID (otherwise skip this step), do the same thing here:
HKEY_LOCAL_MACHINE \\ Offline \\ ControlSet001 \\ Services \\ iaStorV
Close the Registry Editor, command line, and then restart the computer. extract disk installation. That is the operating system for booting normally. Windows now needs, without any problems, to start installing the necessary controller drivers on the hard disk.
Often, after replacing the motherboard or the hard drive changes the mode controller to the BIOS settings (RAID, compatible, AHCI, Original SATA) the system load starts as usual, there is start-up and then - Reset information about the passed POST BIOS, and again, start downloading with the same procedure. This usually happens due to the fact that the system can not load the boot device driver.
That's it!
Have a nice day!