Fixing registry problems via system restore when windows won't boot


Recommended Posts

Fixing registry problems via system restore when windows won't boot.

Everybody knows about system restore, how you can use it to restore your system back to a particular date when all was well. What happens when windows does not boot, because of a problem with the registry? Everybody?s first thought is either performing a repair installation of windows or formatting and reinstalling. Before going that drastic there is one Hail Mary you can attempt before giving up all hope. To do this you need a copy of bartpe (a version of windows that you can boot off a CD.

http://www.nu2.nu/pebuilder (you can use this free software to make your own)

System restore stores all of the restore points in the root of C: in a folder called ?System Volume Information? (You have to tell windows to show Protected Operating system files).

If you open that folder you will see a folder called ?_restore (and then a bunch of numbers)?. All your machines restore points are stored there. The restore points all share a common name, the letters RP and then a number (example RP143). The numbers themselves don?t really tell you when that restore point was created, but the time stamp does. So it?s best to view by details and arrange by date. So you pick a RP folder corresponding by the date you want to go back to and open it up. Every restore point has a ?Snapshot? folder. This folder contains a backup of the system registry the day the restore point was created.

All the registry backups start with the name _Registry_User followed by the name of the registry file. Example _REGISTRY_MACHINE_SYSTEM. (all that file needs is a little rename love?n and it will be as good as new).

Windows stores all of its registry entries in c:\windows(or winnt)\system32\config. So it?s best to backup that folder up before making any changes. After that?s done it?s a good idea to rename the current registry entries to something else, like system to systemold. Now return to your ?Snapshot? directory and copy all backed up registry entries and paste them in c:\windows(or winnt)\system32\config.

All it takes now is just a little renaming. Let?s take system for example. The backup of the system registry file is called _REGISTRY_MACHINE_SYSTEM. Right click it and rename it to what the old file was called. In this case the file was called just system with no file extension. The same goes for the rest of the registry files. The most common registry files to get you back up and running are, System,Software,Security,SAM and Default. I usually just restore all of them.

Once complete reboot your machine. If all goes well the once unbootable windows installation should come back to life, if all that was wrong was the registry. This has worked on more than one occasion, when the fate of a windows install was looking pretty bleak.

Edited by warwagon
  • 2 weeks later...

Excellent technique man, haven't had the need to try it, but it sounds QUITE logical & solid...

(Kudos to you!)

:)

* They ought to "sticky thread" this one... imo, @ least!

HOWEVER - wouldn't RECOVERY CONSOLE (free, as in included with your Operating System CD/DVD already) allow for the SAME THING?

(E.G..-> backing up originals, renaming files, & Copy/overwrite of corrupt ones)

I.E.-> It's QUITE POSSIBLE, bart's PE builder is NOT required!

HOWEVER - you may be correct: It's possible that the registry hives are LOCKED, even if only in part, while RC operates too & a 3rd party tool MAY be needed (since it is NOT "Windows itself" running & thus, not locking registry hives).

(Other tools could possibly manage it as well - such as "System Lifeline" by the folks that produce ONTRACK utlities - this is NOT a std. command processor, & it works while windows is booting. prior to the Windows OS Explorer.exe shell taking effect... & probably does NOT "lock" the registry hives against overwrites too).

APK

P.S.=> Since I liked it, even though it's only based on "theoreticals" @ this point (imo & experience because I have NOT had to use it, but it sounds logical enough)? You get a "5 stars" out of me for a rating... apk

Edited by APK
  APK said:
Excellent technique man, haven't had the need to try it, but it sounds QUITE logical & solid...

(Kudos to you!)

:)

* They ought to "sticky thread" this one... imo, @ least!

HOWEVER - wouldn't RECOVERY CONSOLE (free, as in included with your Operating System CD/DVD already) allow for the SAME THING?

(E.G..-> backing up originals, renaming files, & Copy/overwrite of corrupt ones)

I.E.-> It's QUITE POSSIBLE, bart's PE builder is NOT required!

HOWEVER - you may be correct: It's possible that the registry hives are LOCKED, even if only in part, while RC operates too & a 3rd party tool MAY be needed (since it is NOT "Windows itself" running & thus, not locking registry hives).

(Other tools could possibly manage it as well - such as "System Lifeline" by the folks that produce ONTRACK utlities - this is NOT a std. command processor, & it works while windows is booting. prior to the Windows OS Explorer.exe shell taking effect... & probably does NOT "lock" the registry hives against overwrites too).

APK

P.S.=> Since I liked it, even though it's only based on "theoreticals" @ this point (imo & experience because I have NOT had to use it, but it sounds logical enough)? You get a "5 stars" out of me for a rating... apk

True you don't need bartpe. But with the recovery console you have to type out the whole file names. They can be quite long. yes it can be done. BartPE is easier

  warwagon said:
True you don't need bartpe.

Ah, THAT'S what I was wondering & it appears THERE IS NOTHING LOCKING THE REGISTRY @ THAT POINT (while in RC)... that's what I needed to know!

I was unsure here on this note, thanks for seconding me on it & removing my doubts @ this point.

(Heh, I would try to "experiment" here, but... I only have 1 system now, & trying to pull a "radical experiment" on it, after it has been up & running on Windows Server 2003 since 2003 would be a HUGE risk imo... one I would rather NOT gamble on!)

BUT, you have "had the balls" to try it apparently!

(& that earns your 5 star rating from me @ least, on that merit alone (well, that & the fact your technique sounded logical as all get out too!)).

The thing is, over on "my side of the fence", is:

I don't dare "risk" this setup - TOO many years poured into it, very fine-tuned, secured, & much reorganization/personalization into it etc. et al!

(Well, then again, I have an Acronis TrueImage backup I could return to that IS current, but, would take me about 1 hr. to reinstall the OS, install Acronis TrueImage, & then run the restore from it also)

Ah heck, I'll admit it - it's just me being a coward is all, lol!

  warwagon said:
But with the recovery console you have to type out the whole file names. They can be quite long. yes it can be done. BartPE is easier

Easier = GOOD!

:)

* RC is "primitive" in MANY respects, such as its copy command being a pain too (so, I hear your "pain" when you mention typing things out in it, & more), but, it does do the job well enough, but as you say, sometimes NOT as easily as other things can.

APK

P.S.=> What I am wondering @ this point, & perhaps you can help here? Is IF there is an "SDK" for Windows RECOVERY CONSOLE, because this has given me an idea... that is to write up a small app for RC that will allow .reg file merges. Do you know if MS puts out a SDK for RC? Thanks... apk

Note that this is unnecessary in Vista - just insert the operating system DVD, choose "repair my computer", and the DVD will automatically restore the registry. I've had it do this when my registry became corrupted (a friend was over, and he accidentally flipped the power supply switch while the computer was booting. Not good)

  • 3 years later...
  On 01/04/2008 at 19:16, NateB1 said:

Note that this is unnecessary in Vista - just insert the operating system DVD, choose "repair my computer", and the DVD will automatically restore the registry. I've had it do this when my registry became corrupted (a friend was over, and he accidentally flipped the power supply switch while the computer was booting. Not good)

Plus in Vista and 7 under the c:\windows\system32\config folder there is a folder in their called regback. So if you wanted to do it yourself, all you have to do is back up your original ones. and just copy and paste the contents of regback, into the system32/config folder and boom! Done!

  On 19/10/2011 at 17:36, warwagon said:

Plus in Vista and 7 under the c:windowssystem32config folder there is a folder in their called regback. So if you wanted to do it yourself, all you have to do is back up your original ones. and just copy and paste the contents of regback, into the system32/config folder and boom! Done!

Only took you 3+ years to reply mate. Gotta be a record, right? :D

  • 7 months later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Word can now read you document overviews like podcasts by Taras Buria If you have a big document and no time to check it, the latest Word feature will help you get it done. Microsoft announced that Microsoft 365 Copilot in Word can now read aloud document overviews, letting you listen to them on the go like podcasts or audiobooks. In addition to reading aloud document overviews, Word lets you customize the experience with reading speed controls, the ability to jump back or forward to key parts of audio, pause, and even save the recording to OneDrive to listen to it later or share with someone else. Voice document overviews are now available in Word on Windows (version 2506, build 18925.20138) and Word for the web. If you have a Microsoft 365 Copilot license, you can try it out by opening a document, clicking the Copilot button in the Home tab, and asking the AI to generate an audio overview. Once the overview is generated, Copilot will present you with a media player and playback controls, such as speed, jump forward/backward, and pause. To save the recording, click the three-dot button and select "Save to OneDrive." Finally, you can access previously-generated overviews in your Microsoft 365 Copilot chat history. For now, audio overviews work only in English (Microsoft promises to add more languages soon), and they require a Microsoft 365 Copilot license. There are also two other limitations: Audio overview only works for online files that are in OneDrive and SharePoint, and not local files that are on your system or external drives. Files require a minimum of 100 words to generate an audio overview. In case you missed it, Microsoft recently announced that the new GPT-5 by OpenAI is now available in Microsoft 365 Copilot, giving you a more powerful and modern AI assistant to help you work with documents. GPT-5 is also available in the Microsoft Copilot app on computers and mobile devices.
    • You don’t pay for Microsoft Lens so it must not be that valuable to you. Just saying. Microsoft is a business, it makes money from creating services and products customers are willing to pay for, in exchange for those products (Office, Microsoft, CoPilot) and Services (Office 365, Microsoft 365, OneDrive, GitHub, CoPilot).
    • I think it's aesthetically unappealing, and it's obvious to anyone, not just macOS users. It's right there in the middle of the top menu bar. The engineer responsible for that ugly notch would have been fired by Steve Jobs.
    • "they used a 56-qubit quantum computer to generate random numbers Certified randomness means the numbers are not just unpredictable, but also freshly created and mathematically verified." I don't understand why some would think this is a big deal. Many 6 year olds do this on math tests.😁
    • Mail Backup X (lifetime plan) is now 72% off by Steven Parker Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where you can save 72% off a lifetime subscription to Mail Backup X Individual. For most individuals and organizations, emails are the most critical part of daily activities and communications. Some of us realize the importance of backing up emails only when critical emails are lost for some reason. Plan ahead and safeguard your mail data today with a robust and reliable mail backup solution. Mail Backup X is a one-stop solution for mail backup, archiving, email management & mail conversion trusted by 42,000+ business and home users worldwide. Backup from major mail clients. Apple Mail, Microsoft Outlook, Office 365, Microsoft Exchange, Thunderbird, Postbox Backup from mail services. Gmail, Outlook.com, Yahoo, Gmx.de, Office365, Microsoft Exchange, or any service supporting IMAP protocol Archive file viewer. Quickly search & view your emails from archives Highly compressed archives. Save up to 3x storage space Import almost any mail archive. Files like .pst, .ost, .mbox, .olk, .eml, .rge, and more Mirror backup. Cloud storage (Google Drive, One Drive, Dropbox, Pcloud or FTP) or USB drive Restore. Restore direct to the server account or a separate server account Migration. Move all mails onto a new account in Office365 100% privacy. Encrypt & secure your data with military-grade aes 256-bit encryption and your own private key, so it's only visible to you Top-notch premium support. Get help that you need from experts Good to know Plan: Individual Edition Length of access: lifetime Redemption deadline: redeem your code within 30 days of purchase Access options: desktop Max number of devices: 2 Only available to new users Version: 2 Updates included A lifetime subscription to Mail Backup X normally costs $179, but you can pick this up for just $49.99 for a limited time - that represents a saving of $129 (72% off). For a full description, spec, and terms, click the link below. Get Mail Backup X (lifetime plan) for just $49.99 (was $179), or learn more Although priced in U.S. dollars, this deal is available for digital purchase worldwide. We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
  • Recent Achievements

    • One Month Later
      Jaclidio hoy earned a badge
      One Month Later
    • Week One Done
      Yawdee earned a badge
      Week One Done
    • Week One Done
      eugwalker earned a badge
      Week One Done
    • First Post
      Ben Gross earned a badge
      First Post
    • One Month Later
      chiptuning earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      635
    2. 2
      +FloatingFatMan
      176
    3. 3
      ATLien_0
      144
    4. 4
      Xenon
      120
    5. 5
      wakjak
      108
  • Tell a friend

    Love Neowin? Tell a friend!