Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-02-2001, 02:59 PM   #1
Member (7 bit)
 
Join Date: Oct 1999
Posts: 93
Send a message via ICQ to vista7
I checked thru some of the recovery console options, and I have not seen a scanreg or scanreg/restore type of option.
What is the best way to restore a backup copy of the registry from command console?
vista7 is offline   Reply With Quote
Old 04-02-2001, 09:32 PM   #2
Computer Tool
 
K A Hall's Avatar
 
Join Date: May 1999
Location: Springfield, Missouri
Posts: 1,538
Not as easy as in Win98, but it can be done.
Here it is taken straight from TechNet. Good thing to, I was not about to type it out....heh!
As you can see, having a recent ERD is very important.

http://www.microsoft.com/technet/default.asp

Using the Recovery Console to Restore the Registry:

If you know your registry is damaged, or some of your registry files are corrupted or have been deleted, you might be able to use the Recovery Console to restore your registry. However, this procedure can only work if you regularly create an Emergency Repair Disk (ERD) and you choose the option to back up your registry to the repair directory.

When you create an ERD and you choose this option, the current version of your registry files are copied from the %systemroot%\System32\Config folder to the %systemroot%\Repair\RegBack folder. Since both of these folders are accessible through the Recovery Console, you can use the copy command to restore the files.



To restore the Registry by using the Recovery Console

Warning Only use this procedure if you are certain which registry file needs to be restored, and you are certain that the restoration will not cause other damage to your computer. Restoring registry files improperly can prevent your system from starting and can cause you to lose data.

Start the Recovery Console and log on to the Windows 2000 installation containing the registry that you want to restore.
To copy the files you want from %systemroot%\Repair\RegBack to %systemroot%\System32\Config, type:
cd repair\regback

and:

copy file_name drive_letter:\system_root\system32\config

where file_name is the registry file you want to restore, drive_letter is the drive letter where your system is installed (for example, C), and system_root is the system installation folder (for example, Winnt).

Note As a precaution, first rename the existing file in the Config folder that you intend to restore from backup. If a problem arises from the restoration attempt, you can restore the renamed file to return your system to its original condition.

To restore your entire registry, you need to copy the files Default, Sam, Security, Software, and System.

To exit the Recovery Console, type:
exit

__________________
Breitbart is here: War! on Twitter @kirkahall
K A Hall is offline   Reply With Quote
Old 04-03-2001, 03:10 AM   #3
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
You can use this script to automate the creation of an emergency repair disk in Win2K.

Save the code as erdisk.js or something
Code:
var shell = new ActiveXObject("WScript.Shell");
shell.Popup("Please insert blank floppy disk in the drive A:", 15);

shell.Run("ntbackup.exe");
WScript.Sleep("500");

shell.Sendkeys("%m"); //selects the Emergency repair, % is Alt

shell.Sendkeys("~"); //presses Enter (could have used {ENTER} instead of ~)

WScript.Sleep("15000"); //pauses for 15 seconds so as to not Enter the Cancel!!! You may need to change this.

shell.Sendkeys("%{F4}"); //tries to close but fails and selects the OK button. 

shell.Sendkeys("~"); //presses Enter (could have used {ENTER} instead of ~) after it has completed

shell.Sendkeys("%{F4}"); //closes NTBACKUP

WScript.Quit();
In windows NT you could use RDISK /S, but this option is no longer valid in win2K because the creation of the ERdisk is integrated in ntbackup now (I still don't know why they did that.)
mosquito is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:37 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2