Securing the Windows Registry

Source: Internet
Author: User
Tags safe mode

It is important to protect the registry, and there are a number of different tools that can be used to achieve this. When there is no security setting, the user may have more errors. Luckily, they can have several ways to protect the Windows registry, and they can restore the registry with an extra copy when the registry fails. Here are some of these methods:


1. Use Windows Backup software


Note: There is a partial difference between WIN95 and Win98 backup programs, where only the Win98 backup program is spoken.


A backup program is included in the Win98. If you choose "Custom Install" when installing Win98, or you can install it in the Add/Remove Program in Control Panel. When you install this backup program from the Start Menu | Program | Accessories | System Tools | Backup can run it. At startup, this program prompts you to create a new backup, open an existing backup job, or restore a backup file.


If you choose to create a new backup, a backup wizard prompts you to make a backup.


If you choose to cancel the wizard, you can manually set the content you want to back up. You can back up your network and local drive files in the backup content. You can do backup work in a check box that you want to back up a disk or file. And then where to put the backup where you do backup the purpose of the location can be. If you want to back up together with the Windows registry, in the Job | options | Advanced, check the "Back Up Windows Registry" selection box to check the list. Recovery is the reverse process of backup, which is not detailed here.


2. Copy the registry file in Safe mode


When Win95 runs, the registry files are locked and can only be accessed using registry editors or the system itself, which cannot be replicated elsewhere. If you start Win95 in Safe mode, the registry will not be loaded with the same method, so SYSTEM.DAT and USER. DAT can be replicated. In fact, the system files are protected in Safe mode.


At startup, press F8 to enter Safe mode when the computer displays starting Windows 95 .... Change SYSTEM.DAT and USER. DAT's hidden and read-only properties so you can see and copy them. When you finish copying the registry files, do not forget to change their read-only and hidden properties.


3, the use of Microsoft Configuration Backup to back up your registry files


Cfgback. EXE is the backup software that comes with Win95 (not in Win98). It's on the Win95cd-rom othermisccfgback this directory. Copy all the files to any directory on the system, and then create a CFGBACK.EXE shortcut on the desktop.


To do a backup of the registry, start Cfgback and then enter a name in the selected backup name location and then click Backup to continue.


Note: Before using Cfgback, make sure that you have turned off all running programs. If a program is running, Cfgback may cause the system to crash, lose data, and save an incomplete backup.


4. Export the Registration form


In my opinion, if you don't have a tape drive or anything else. The export option in REGEDIT.EXE has one export as a text file. Typically, a compression tool is used, and the Export tool option can also be used as a way to save and protect the registry.


To export any key in the registry, select the key and then select Register/Export Registry file. This will copy the key and prompt you to store the key and its name there, and then use a name extension of. REG file to save this data.


When we export the registry in text format. We can use like pkzip or other compression tools to compress it (which can run in normal DOS mode) to save space.


For backup we can create a folder for backup in the Windows directory. We should make regular backups at least one months. Because many computer users subscribe to or buy computer magazines with complimentary CDs. These CDs have a large amount of time-limited shareware. Many users install one or more programs from them. They do not install these programs when the software expires, but these programs leave traces in the registry. Frequent Add/Remove Programs affect the registry, but it is relatively safe to have a backup.


We have to restart the computer to DOS mode down to import, assuming you export your registry to Mar99.reg. Now, call at the command prompt.


REGEDIT/C MAR99. Reg


Registry Editor imports the data from Mar99.reg into your registry and saves it. However, only at the command prompt the full import of the work is more reliable.


Tip: If your registry continues to grow in size, then pilot it and import it one at a--like the above. Unnecessary entries in the registry will be cleared during this import export process. If you use Win98 then you can use the Scanreg.exe program. Execute the command by playing scanreg/fix at the Windows directory command prompt.


Keep in mind that prevention is much better than repair. The registry is too easy to change, and having several registry backups in case of a sudden event is the best way to solve the problem.


Recovering from a registry failure


There are four different levels of methods to recover from Windows registry failure


Restart


Redetect


Restore


Reinstall


Let's take a look at each method to determine the best time to use it and solve the type of problem.


Restart (reboot)


Most of the contents of the Win95 registry are stored in RAM. If any information is compromised, it must reread the correct information. When you reboot the system, the registry reads the data from the hard disk into RAM and it is ready to use.


Take the font ID question. Each font is used with an ID number in the system. When a font is used in a document, the font is saved by this number and is identified by a name. When the font ID is corrupted, font display and printing will be replaced by other fonts. Restarting the system refreshes the data from the hard disk, resulting in a repaired font ID, which makes the font display and print normal.


This is one reason why Windows system failures often return to normal after a reboot.


Redetect the Devices (re-test hardware)


If a device is not working properly, the settings for controlling the device in the registry may be compromised. In order to reset the registry, you should remove and reload the device drivers, or you should let Win95 check them again. Often, when a device is not working properly, they are displayed using an exclamation mark on Device Manager before the device. Obviously, if the device never works, it could be another problem. But if the device is working before and there is a problem, the registry needs to be restored.


To detect a device, select Add New Hardware on the control Panel. The first question is, "Do you need windows to search for new hardware?" "If you choose Yes, Win95 will do a thorough search to find" new "devices. Any device that is incorrectly set or not found will be detected and displayed.


Restore (Restore)


Restore the registry from Cfgback


There are many benefits to restoring the registry from Cfgback. If you set up a few backups, you can choose the right one to recover. You can arrange the registry parameter entries as if you were doing surgery.


Import registry Files


As explained in the previous section, one way to replace a backup is to import one. REG file ... The reg file includes the destination data location, so simply double-clicking on the file can put the data into the registry. It is the simplest of all recovery programs, but it can also cause errors. The error is not to write the data to the wrong location with REGEDIT.EXE, which is likely to occur when the user double-clicks the registry file directly.


Reinstall (Reinstall)


Re-install


The final approach is to reinstall the driver, application, or Win95. In general, it only takes you one hours or so to do these things. If you reinstall the existing files, a lot of the configuration information is installed in the same place. Also, when you install the driver, you should rejoin the configuration data.


Actually it took more time to find out why and fix it than to reinstall it, which is why reinstalling is a fairly common "workaround" for technical support. The key question is, "Do you want to find out what the mistake is, or do you just want it to work properly?" "The answer depends on the user who asked the question, the frequency of the problem and the practicability of the reinstall software."


When Windows is first installed, it creates a file named system.1st on the root directory of the startup directory. This is a simple System.dat file that was created when Windows first started. All you have to do is put the file in the Windows directory (in DOS mode) and change its name to SYSTEM.DAT. and then reboot. Then you can get windows that first started when you installed it.


Because a lot. Ini. DLL and other file changes, the probability of success for this method is only about 50%. For example, when installing IE4.0, the system and Registry will have a radical change. Our system.1st file contains a reference to a DLL file, but it may update or change the version number.


Here are a few tools and methods to recover the registry when it fails. Your data may be safely restored, but no matter what method you use, in addition to reformatting the hard drive, the best way is to do a good job of backing up the system registry.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.