Hey, For some ungodly reason my system shat itself today. It was running fine, I turned it on at 9AM this morning and it booted fine, I shut it down at 10AM to go get food and take a mate to her parents house, came home at 11AM and turned on the PC, god forbid it failed to start and went into Windows Automatic Recovery. It failed to restore/repair a corrupt driver, failing this twice I decided to rebuild my system as my OS resides on its own HDD (Standalone not Raided anymore), So thats what I did, didn't format so as to save my data and registry settings. Now its all good, but in order to restore settings and make the vast majority of my applications and games work again I need to restore the previous registry. Obviously since it wasnt a format I still have those hives in %windir%.old\system32\config Now the drama is trying to restore them, I can't do a straight copy and paste over as they are in use (and it could fuck things), I've tried opening them with regedit, and tried importing them, but it fails. The hives themselves are fine and in good order...its just trying to restore them!
Anybody have any ideas? I'm thinking a DOS Boot CD and using command prompt to copy and paste the files from one place to another. But does anybody else have any other ideas?
29th January 2007
Now the drama is trying to restore them, I can't do a straight copy and paste over as they are in use (and it could fuck things), I've tried opening them with regedit, and tried importing them, but it fails.
To be honest, you could maybe try the same method that's done for replacing dll's in use.
If on vista - use a various of the take control progs. rename the the file currently in use, copy old file. log out, log in.
If on XP - I remember there was a commandline line application called replacer, that allowed you to just swap the two files regardless of in use or not.
The downside with that is just how embedded the keys are. Each user has his/her own serial#, or hash. If you replace it with a registry that does not use that hash, then the OS will likely no longer function.
Thanks, I'll try that tonight. UBCD 4 Win doesn't work, It doesn't support the amount of Ram I have, so I removed 6GB and it BSODs because of drivers (Dedicated Raid controllers and all...) I used Herins BootCD, used CMD to copy and paste the hives, that worked...until I couldn't login because of 'forgotten password' (But mearly because I didn't also copy the users .dat files in the profile with the password)
So after various attempts, I rebuilt and I'll tackle it again tonight.
I'm not concerned how often I have to rebuild at this stage as the data is kept and Win 7 is very quick to install, and this is more a learning process aswell so I can get the system up and running much quicker after a rebuild.
Monster, I'll give what you said a shot, but I'll also schedule a registry backup every day (since it takes o say 30 seconds lol) to export the entire registry to USB key I'll just leave plugged into the system 24/7.
That'll go along with my usual daily maintenance of Defrag at 10PM, temp folder cleaning at 9PM, and Chkdsk at 4AM on all drives. It's a 12hr process, but works great lol.
Sgt. D. Pilla;4933816I used Herins BootCD, used CMD to copy and paste the hives, that worked...until I couldn't login because of 'forgotten password' (But mearly because I didn't also copy the users .dat files in the profile with the password)
Did you try removing the password?
You may also need to set the permissions of your user account (C:\Users\Pilla) to full access for all users, before copying the hives over.
I did yeah. That password tool is part of Herins, but my OS drive is connected to the GSATA ports on the motherboard rather then Sata. Meaing they require Gigabyte drivers, and my general lack of patience got the better of me when trying to get drivers in. The program only allows USB key or Floppy, I dont' have a USB key at the moment (Lost it damn my luck) and don't have a floppy drive. I more or less gave up, Dissapointing but kinda serves me right. Ahwell, I've scheduled a batch file to export the entire registry daily (regedit /e S:\Reg_Bkup.reg) Thanks for the help though monster
No problem. Actually I think I am going to write that /e switch down, should I decide to create a batch script myself.
Monster. Now I've had some time to make a proper registry bacukp you may want this script...just save as a batch file and your ready to go! *So long as you schedule it :P* @ECHO OFF for /f "tokens=1-4 delims=/- " %%a in ('date /t') do set XDate=%%a_%%b_%%c_%%d ECHO ********************************************************* ECHO * * ECHO * * ECHO * File Name will be named %XDate%_Reg_Backup.reg * ECHO * * ECHO * * ECHO ********************************************************* ECHO. ECHO Creating Temp Reg File... ECHO This May Take A Few Minutes... ECHO Please Wait... regedit /e E:\Regtmp.reg ECHO. ECHO Renaming Reg Temp File... ren E:\Regtmp.reg "%XDate%_Reg_Backup.reg" ECHO. ECHO Registry Backup Hive Saved As... ECHO %XDate%_Reg_Backup.reg pause
Tested and works ok ish... You can run it twice on the same day, but it won't rename the file second time around *As file already exists* and I couldn't be bothered fixing that. Had to rename the file to have %XDate% as flat out creating it doesn't work properly. Ohwell, bandaids always work!