Win 8 registry corrupted by AHCI (SSD) wrong (Win7) registry fix - unable to undo

Hiceiling

Honorable
Nov 3, 2013
15
0
10,510
A few months ago, I setup a new ASUS mobo P9X79-E WS with an Intel i7-4930K cpu, Corsair Vengeance 32GB DDR3 RAM, 3 x MSI HD 7790 radeon GPUs and a SSD Corsair Neutron 240 GB as primary. I am running Windows 8 (8.0). It ran ok but occasionally I had hardware freezes requiring regular hard resets. So I ran Winzip registry optimizer on a regular basis with restore points.
Foolishly, I looked for a "fix" thinking that the SSD was probably the cause of these intermittent freezes (mainly caused when using IE and sometimes simply file explorer) and downloaded (wrongly) a registry fix that was actually meant for windows 7. My AHCI was already set in the BIOS correctly (I did not know at the time and thought it was on IDE).
Since I ran the registry "fix", my computer refuses to boot windows and refuses to restore a previous registry. I guess the two problems are not related but I am not sure.
In any case, I was looking at the registry trying to identify the new entries but just can not find them. The entries were meant for windows 7, not 8 and the main entry just does not exists in Windows 8, yet nothing works anymore...
Here is the contents of the registry "fix" that I am trying to undo but can not find (does not appear):
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\msahci]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000003
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,52,\
00,49,00,56,00,45,00,52,00,53,00,5c,00,6d,00,73,00,61,00,68,00,63,00,69,00,\
2e,00,73,00,79,00,73,00,00,00
"Group"="SCSI Miniport"
"DriverPackageId"="mshdc.inf_x86_neutral_3f3676f4c0e7d884"

My Windows 8 still does not have that entry but what did this registry fix do?
Any ideas how I can undo the damage without re-installing most of my software...? None of my previous restore points run, they generate an error:
"...unspecified error occurred during System Restore. (0x8007051a)"

Any ideas?
 

popatim

Titan
Moderator
I would try reinstalling the sata controller driver. That usually loads the driver and updates the registry to use it.
You dont mention which controller you have the drive on and there are 3 in that motherbd.

for the asmedia and marvel controller you will likely need to delete the controller from the device manager. Intel you can probably reinstall the management engine or RST as I forget which one loads the ahci drivers
 

Hiceiling

Honorable
Nov 3, 2013
15
0
10,510
Wouldn't this be like selecting the "Refresh your PC" from the advanced tools? I.e., it would rebuild the registry with keeping all my personal files and metro apps, but not the legacy software? The non-metro software are the ones that I am trying to keep as it would take me so much time to re-install them all, find the keys, configure them etc... If not, then perhaps I should try, but I would like to be sure... Also, I had such a hard time to get the MSI ATI GPUs drivers work right...

 

Hiceiling

Honorable
Nov 3, 2013
15
0
10,510
Thanks Pop. Not sure how to do this when I can not boot in safe mode. My options are pretty limited at this point. I just can get to "refresh your PC", "Reset your PC", "Advanced options": "System Restore" (does not work), "System Image Recovery" (I did not create an image because I thought that my restore points would work), "Automatic Repair" (Keeps failing), "Command prompt" (I can access my files and some basic programs like regedit etc.) and "Startup settings" (All fail, including basic safe mode).
For the controllers: it is connected to the Marvell SATA 6Gb one that it meant to be used for SSD and requires AHCI. I only remembered after making the mistake to load that registry edit that in fact I had put AHCI in bios from the beginning as I had find out at the time that installing Win8 with IDE would have given me trouble... (lol)
So is there a way using the old DOS (command prompt) to de-install and re-install drivers? Can I access the device manager somehow, or is there a sys file I can edit?
 

Hiceiling

Honorable
Nov 3, 2013
15
0
10,510


I tried to put the windows 8 disk but when I get to the refresh option, it tells me that my drive is locked. When I try to do it with the "repair PC" option of the actual boot system (without windows disk) and get to the same option (refresh PC), then it tells me that the Users, Program Files, and Windows directories need to be on the same drive... I still can access the SSD directories and files using the command mode though, but it does not want to refresh the PC. It is strange as in command mode I see all my files, I can use regedit, notepad etc. A checkdisk does not return any anomalies.
 

Hiceiling

Honorable
Nov 3, 2013
15
0
10,510

As I could not access my restore point (I could but they get refused), I have exported the actual (corrupted) registry and can see using command prompt where it is. As I could not access the device manager, I tried to import separately one of the old registry. It did not work and it does not allow to refresh my PC as explained to neieus here above... I am trying to get back to my original (corrupted) registry that I had exported. Do you know how I can replace the existing (latest) to the one I exported (with that one I could try again to refresh my PC)... Thanks.