Windows Registry - Basic

swati16

Member
[FONT=&quot]

[/FONT] [FONT=&quot]Registry basics[/FONT]
[FONT=&quot]The registry contains extended information, settings, and various other values for the the Microsoft Windows 95, Windows 98, Windows NT, Windows 2000, Windows ME, Windows XP Operating Systems. Within the registry you can control a great majority of the operating system as well as fix a lot of issues with Windows. However, we only recommend those who are experienced with computers or who feel confident to go into the registry.[/FONT]
[FONT=&quot]Before going into the Registry and changing or deleting anything, we ALWAYS recommend that you backup the registry.[/FONT]
[FONT=&quot]The computer registry consists of two files hidden in the Windows directory, system.dat and user.dat. User-specific system information is contained in the user.dat file and Computer and Hardware specific information in the system.dat file.[/FONT]
[FONT=&quot]To get into the Windows 95 or Windows 98 registry, click Start / Run / type [/FONT][FONT=&quot]regedit[/FONT]
reg1-1.gif





[FONT=&quot]When typing regedit you will get the below screen; this window, as you can see, is the Registry editor. This windows looks very similar to Explorer; however, within each folder you have sub folders which have various settings.[/FONT]
[FONT=&quot]Below are the types of files that you will see during the time you are in the registry.[/FONT]
[FONT=&quot]
ofolder-1.gif
- Open or selected folder just as you would see in Windows Explorer
cfolder-1.gif
- Closed folder just as you would see in Windows Explorer
ireg1-1.gif
- String Value allows you to place certain values to certain aspects of a program such as a version number.
reg2-1.gif
- Binary Value allows you to set attributes to a particular application, values are in binary.
reg2-1.gif
- Dword Similar to the binary value allowing you to set attributes; however, are done in binary and
hex.[/FONT]
[FONT=&quot]Backing up and restoring the registry[/FONT]
[FONT=&quot]To backup the Windows 95 registry, manually restart the computer in MS-DOS prompt. Information about how to get to a MS-DOS prompt can be found on document CHDOS.[/FONT]
[FONT=&quot]Type cd\windows[/FONT]
[FONT=&quot]At the C:\Windows> prompt, type the following:[/FONT]
[FONT=&quot]attrib user.dat -r -a -s -h[/FONT][FONT=&quot] <press enter>
attrib system.dat -r -a -s -h <press enter>
md backup <press enter>
copy user.dat backup <press enter>
copy system.dat backup <press enter>[/FONT]
[FONT=&quot]The above will copy the registry files into a backup directory in your Windows directory. This directory can be substituted for any directory or any other drive. Note: In many cases, the registry cannot be copied onto a single floppy because it exceeds the size of a standard floppy. [/FONT]
[FONT=&quot]Restoring the Windows 95 registry[/FONT]
[FONT=&quot]If you have made a backup of the user.dat and system.dat files in the past and you have verified they still exist, follow the below steps to restore your Windows 95 registry.[/FONT]
[FONT=&quot]First, get the computer to a MS-DOS prompt. Information about how to get to a MS-DOS prompt can be found on document CHDOS.[/FONT]
[FONT=&quot]Once at the MS-DOS prompt, type cd\windows [/FONT]
[FONT=&quot]Once in the Windows directory, type the following:[/FONT]
[FONT=&quot]attrib user.dat -r -a -s -h[/FONT][FONT=&quot] <press enter>
attrib system.dat -r -a -s -h <press enter>
del user.dat <press enter>
del system.dat <press enter>[/FONT]


[FONT=&quot]Once these files have been deleted, type cd\windows\backup once in the windows\backup directory type the below. If you have have changed the location of where your registry is backed up you will need to change to the directory that contains the backup. [/FONT]
[FONT=&quot]copy user.dat c:\windows [/FONT][FONT=&quot]<press enter>
copy system.dat c:\windows <press enter>[/FONT]
[FONT=&quot]The above should copy two files; once copied, reboot the computer and you should now be able to get back into Windows.[/FONT]
[FONT=&quot]Backing up the Windows 98 registry[/FONT]
[FONT=&quot]Windows 98 has a new utility known as 'scanreg', this utility automatically makes backups of your registry each time you boot up your computer. However, the steps listed above for backing up Windows 95 registry also work but are not necessarily needed unless you wish to keep an original elsewhere.[/FONT]
[FONT=&quot]Restoring Windows 98 registry[/FONT]
[FONT=&quot]To restore Windows 98 registry, open a MS-DOS prompt; information about how to do this can be found in document CHDOS.[/FONT]
[FONT=&quot]At the MS-DOS prompt, type cd\windows\command[/FONT]
[FONT=&quot]Once in this directory, type scanreg /restore this will restore an earlier version of your registry. Once completed, reboot the computer and this should resolve any issues that may have occurred with your registry.[/FONT]
[FONT=&quot]If you backed up your registry using the Windows 95 steps use the Windows 95 restore steps to restore the registry.[/FONT]
[FONT=&quot]Backing up the Windows ME registry[/FONT]
[FONT=&quot]Like its predecessor, Microsoft Windows ME also includes the scanreg utility. This utility automatically makes backups of the registry each time the computer boots. [/FONT]
[FONT=&quot]Restoring the Windows ME registry[/FONT]
[FONT=&quot]To restore an earlier version of the registry a user can click Start, Run, and type scanreg /restore to restore the registry. If you are unable to get into Windows this can also be done through Safe Mode. Additional information on how to get into Safe Mode can be found in document CHSAFE.[/FONT]
[FONT=&quot]Backing up the Windows 2000 registry[/FONT]
[FONT=&quot]The Microsoft Windows 2000 registry can be backed up easily from the backup utility by following the below steps.[/FONT]
[FONT=&quot]1.[/FONT][FONT=&quot]Click Start, Programs, Accessories, and click backup. [/FONT]
[FONT=&quot]2.[/FONT][FONT=&quot]Within backup, click the backup tab. [/FONT]
[FONT=&quot]3.[/FONT][FONT=&quot]Within the backup tab, check "System State", this will create a backup of boot files, COM+ Class Registry Database, and the system registry. [/FONT]
[FONT=&quot]Restoring the Windows 2000 registry[/FONT]
[FONT=&quot]If you have created backups using the Microsoft backup utility from the backup utility you can also restore the registry through this utility.[/FONT]
[FONT=&quot]Backing up the Windows XP registry[/FONT]
[FONT=&quot]Microsoft Windows XP includes a new feature known as system restore. This great new feature enables a user to backup and restore their important system files from an earlier day. By default this feature automatically creates a backup of the system each day. If you wish to create a restore point of your system follow the below steps.[/FONT]
[FONT=&quot]1.[/FONT][FONT=&quot]Click Start, Programs, Accessories, System Tools, System Restore [/FONT]
[FONT=&quot]2.[/FONT][FONT=&quot]Select the option to Create a restore point [/FONT]
[FONT=&quot]3.[/FONT][FONT=&quot]Click next and follow the remainder steps. [/FONT]
[FONT=&quot]Restoring the Windows XP registry[/FONT]
[FONT=&quot]To restore the system back to an earlier point follow the below steps.[/FONT]
[FONT=&quot]1.[/FONT][FONT=&quot]Click Start, Programs, Accessories, System Tools, System Restore [/FONT]
[FONT=&quot]2.[/FONT][FONT=&quot]Select the Restore my computer to an earlier time [/FONT]
[FONT=&quot] option and click next [/FONT]
[FONT=&quot]3.[/FONT][FONT=&quot]Select the day and the restore point you wish to restore and click next. [/FONT]
[FONT=&quot]Registry keys[/FONT]
[FONT=&quot]KEY[/FONT]
[FONT=&quot]DESCRIPTION[/FONT]
[FONT=&quot]HKEY_CLASSES_ROOT[/FONT]
[FONT=&quot]Points to branch of Hkey_Local_Machine that describes certain software settings. This key displays the same data as it did in Windows 3.1 - essential information about OLE and association mappings to support drag-and-drop operations, Windows 95 shortcuts (which are, in fact, OLE links), and core aspects of the Windows 95 user interface.[/FONT]
[FONT=&quot]HKEY_CURRENT_USER[/FONT]
[FONT=&quot]This key points to a branch of Hkey_Users for the user who is currently logged on.[/FONT]
[FONT=&quot]HKEY_LOCAL_MACHINE[/FONT]
[FONT=&quot]Contains computer-specific information about the type of hardware installed, software settings, and other information. This information is used for all users who log on to this computer.[/FONT]
[FONT=&quot]HKEY_USERS[/FONT]
[FONT=&quot]Contains information about all the users who log on to the computer, including both generic and user-specific information. The generic settings are available to all users who log on to the computer. The information is made up of default settings for applications, desktop configurations, and so on. This key contains sub keys for each user that logs on to this computer.[/FONT]
[FONT=&quot]HKEY_CURRENT_CONFIG[/FONT]
[FONT=&quot]Points to a branch of Hkey_Local_Machine\Config that contains information about the current configuration of hardware attached to the computer.[/FONT]
[FONT=&quot]HKEY_DYN_DATA[/FONT]
[FONT=&quot]Points to a branch of Hkey_Local_Machine that contains the dynamic status information for various devices as part of the Plug and Play information. This information may change as devices are added to or removed from the computer. The information for each device includes the related hardware key and the device's current status, including problems.[/FONT]
[FONT=&quot]Registry screen shots[/FONT]


reg1-1.gif
 
Top