MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= Welcome =---------- > Videos, Guides and Frequently Asked Questions > Backup, format or restore your PC
Register FAQ Members List Calendar Casino Mark Forums Read


 
 
Thread Tools Display Modes
  #1  
Old 01-11-08, 01:12
Adrynalyne's Avatar
Adrynalyne Adrynalyne is offline
Super Moderator
 
Join Date: Jan 2002
Location: On the Internet
Posts: 18,946
Thanks: 504
Thanked 1,070 Times in 720 Posts
Default Backing up Your Registry

rev. 1.1

Nobody wants to do it, some people refuse to. However, at some point, you will need to edit the registry. The registry is a wonderful and terrible place, at the same time. You can access many hidden settings, and tweaks that were not previously possible. Other times, you have a problem with Windows, that only a registry edit can fix. The problem with the Windows registry editor (here on out referred to as regedit) is that it does not give anyone any chances to undo an action. What this means is, your changes are a one way street. Therefore, it becomes critical that you back up your registry before attempting tweaking or repair.

Here is how.

In Windows XP:
Method 1
Click Start, All Programs, Accessories, System Tools, System Restore. From here, we will click the Next button, and then Click Create on the next page. Give it a memorable name. Restoring the registry is easy as well. Going back to System Restore, instead go to Restore My Computer to an Earlier Time, and choose the restore point you previously created.

Method 2
Backup files under C:\windows\system32\config folder. The pertinent files are SYSTEM, SOFTWARE, SAM, SECURITY, and DEFAULT. Make sure you save them in a folder at the root of the C:\ drive, and not under ~\Windows or Profile folders. The method of replacement in this method is more complex, but essential when your system isn't booting from your mistake in the registry. In this case, you would review this articlehttp://support.microsoft.com/kb/307545. The only difference is, under Part 1, step 5, the last set of copy commands will differ. Lets pretend that you backed up the 5 files to C:\regbackup. Instead, the last part of step 5 will look something like this:
copy c:\regbackup\system c:\windows\system32\config\system
copy c:\regbackup\software c:\windows\system32\config\software
copy c:\regbackup\sam c:\windows\system32\config\sam
copy c:\regbackup\security c:\windows\system32\config\security
copy c:\regbackup\default c:\windows\system32\config\default

It also invalidates Part 2 and Part 3. So in that respect, its easier than the article. Not to mention, it now makes the process work perfectly fine for OEM versions of Windows! Part 4 will still work, and should be done, if the registry backup is new.

Method 3
Instead of an entire registry backup, which may be extreme under some circumstances to fallback on, we can do a simple single key backup. In these cases, we would backup the key we are editing. For example, if I was editing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, I could backup this key. This assumes you have opened regedit.exe and are looking at your registry, by the way. First, we make sure that the correct key is highlighted, on the left. Then, go to the menu File, and choose export. Make sure that at the bottom, the correct key is noted, and selected on selected branch. Then we save it with a memorable filename somewhere safe. Restoring a backed up key is easy, just double click to import the information back into the registry.

In Windows Vista:
Method 1
Click the Start Orb, and type systempropertiesprotection into the search box. Go through the UAC prompts, if they are enabled on your system. It will present you with the Advanced System Properties box, and have the System Protection tab highlighted. Simply choose the drive that needs a restore point created for, and click Create. Give it a name that you will remember.
Restoring it is easy. Go back to the same place, and this time click system restore. You can chose the recommended restore, but chances are, you need to click the box that says Choose a Different Restore Point, and click Next to chose your backed up point.

Method 2
This method is the same as XP's method 3, mainly because there is no reason to backup the 5 hive files in Vista, as we can access System Restore from the Windows Recovery Environment to restore from Method 1. You boot off the DVD, go through the prompts, and instead of choosing Install Now, you choose the Repair option. So, the other preferred way to backup your registry will be the same as Method 3 for XP. In case people don't want to scroll up:
Instead of an entire registry backup, which may be extreme under some circumstances to fallback on, we can do a simple single key backup. In these cases, we would backup the key we are editing. For example, if I was editing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, I could backup this key. This assumes you have opened regedit.exe and are looking at your registry, by the way. First, we make sure that the correct key is highlighted, on the left. Then, go to the menu File, and choose export. Make sure that at the bottom, the correct key is noted, and selected on selected branch. Then we save it with a memorable filename somewhere safe. Restoring a backed up key is easy, just double click to import the information back into the registry.

I have received question as to why I did not include a popular method of backing up the registry. This method is where you open regedit.exe, highlight the topmost entry (Computer), and then go to file, Export, saving an entire backup to a .reg file. Another way, but to the same end is to do it via command line:
regedit /e C:\whatever.reg

The reason I did not mention this, is quite simply because it does not work. At all. Sure, you get a backup, but to what end? If you try to re-merge the backup, you are rudely greeted with an error a few seconds later.


A copy of this can be found in pdf format here.

Last edited by Adrynalyne; 01-20-08 at 12:34..
The Following 22 Users Say Thank You to Adrynalyne For This Useful Post:
Adelap (08-08-10), alexgw (03-02-10), bill3333 (11-15-08), cesarvh (03-19-13), Cmdr Chill (08-09-08), eleanor (05-19-14), fishman 777 (02-19-10), handydjc (09-24-08), HominSalem (05-01-12), jackragan (12-31-08), jellytots55 (11-20-09), Josr (01-14-09), justlivordie (10-07-13), kurtzilla1 (07-17-10), LittleDragon (05-13-09), Mavericco (01-28-09), Molly Wilfred (11-21-08), pasand (01-29-09), sam108 (08-30-10), security_wannabe (06-14-09), Spock96 (12-08-11), thomschlik (12-30-08)
Sponsored links
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up parts of the registry? Tom Stalley Software 3 01-08-08 09:59
Backing up the Registry abri Software 6 07-12-06 08:52
Backing up Registry in XP Pro Zadig69 Software 4 04-11-05 07:13
Backing up the Registry cranky old lady Software 2 08-28-04 20:05


All times are GMT -5. The time now is 21:25.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds


All content Copyright MajorGeeks.com source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger