- Windows 98 and Me Troubleshooting Tools
- Windows Me Disk Management
- Windows 2000 Accessories
- Troubleshooting Disk Management
- Windows 2000 Registry
- Windows Me and 98 Troubleshooting Modes
- Windows Me Setup Log Files
- Windows 2000/XP Startup Modes
- Windows XP System Restore
- Exam Prep Questions
- Answers and Explanations
Windows 2000 Registry
Windows 2000 stores its configuration information in a database called the Registry. The Registry contains information for users, system hardware, software, and other settings. Windows constantly references the Registry during its operation. You can edit the Registry in order to alter your OS in some fashion. For example, to run a program at startup you could add the string programname.exe to the key HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\Run. Incorrectly editing the Registry can severely damage your system. If you do damage your system, you might be able to repair the Registry or restore it to the same version you were using when you last successfully started your computer. You can resort to reinstalling Windows if it is damaged beyond repair, but you might lose any changes that have been made.
CAUTION
Incorrectly editing the Registry can severely damage your system.
The Registry is organized hierarchically as a tree made up of keys, subkeys, hives, and value entries. There are three types of values: String, Binary, and DWORD. There are two Registry editors included with Windows 2000: Regedt32 and Rededit. In Regedit the keys have icons similar to the folder icons in windows. With Regedt32 you can set the security for Registry keys. Also in Regedt32 you can view or edit the value data types REG_EXPAND_SZ and REG_MULTI_SZ. With both Regedit and Regedt32 you can edit the Registry of other computers on the network if you have administrative rights and the Remote Registry Service is running on the other computer.
Resources
-
PC-compatible desktop/tower computer system with Windows 2000 installed
Procedure
In this lab you will use Regedit to change some basic colors on the computer. You will edit the string My Computer\HKEY_USERS\45 CHARACTER\Control Panel\Colors\Menu, where 45 CHARACTER is a unique identification number assigned to the user. There should be only one registered user on the computer, the Administrator. The Menu string is 212 208 200 (Gray) by default. For this Registry string there are three numbers that range from 0 to 255. They represent a value in their respective color: red, green, or blue. Four basic colors are listed in Figure 3.20 as an example.
Figure 3.20 Basic colors.
-
Edit a string.
-
Boot to the Windows 2000 desktop.
-
Start Microsoft Registry Editor by clicking Start, Run. Type regedit and click OK.
-
You will see a window similar to Figure 3.21. Expand HKEY_USERS by clicking the plus (+) sign next to its icon.
-
Expand the first 45 CHARACTER key. It could be s-1-5-127520070-1808537768-1060284298-500 for example.
-
Expand the CONTROL PANEL key.
-
Click the COLORS key.
-
In the righthand window look for the string value Menu and record its type in Table 3.30.
-
Double-click the Menu string. Your screen should look similar to Figure 3.22.
-
Record the value data in Table 3.31.
-
Enter 0 255 0 for the Value data, and click OK.
-
Close the Registry Editor and restart the computer.
-
View the results.
-
When the computer has restarted to Windows, click the Start menu.
-
Record your observations in Table 3.32.
-
Right-click the desktop and select Properties.
-
Click the Appearance tab.
-
Under the Item drop-down menu select Menu.
-
To the right of the drop-down menu is a field called Color. Click it and then click Other.
-
You will see a window similar to Figure 3.23. Record the Red, Green, and Blue values in Table 3.33.
-
Enter 212 for the Red value.
-
Enter 208 for the Green value.
-
Enter 200 for the Blue value.
-
Click OK to close the Color Properties.
-
Click OK to close the Display Properties window.
-
Restart the computer.
-
View the Registry string value.
-
When the computer has restarted, start the Registry Editor and browse to the Menu string as in steps 1af.
-
Double-click the Menu string as before.
-
Record your observations about the value of the string in Table 3.34.
-
Close the Edit String window.
-
Export the Registry.
-
In the menu bar, click the Registry menu and then select Export Registry. You will see a window similar to Figure 3.24.
-
Under Export range click the All radio button.
-
In the Save In box confirm that the default location is MY DOCUMENTS. If it is not, change the default location to MY DOCUMENTS.
-
In the File Name box enter sample registry export for the filename and click Save.
-
After a few moments the Registry files will be exported to MYDOCUMENTS. Close the Registry Editor.
-
From the Windows desktop, double-click the My Documents icon.
-
Right-click the sample registry export and click Properties.
-
Enter its size in Table 3.35.
-
Close all windows.
Figure 3.21 The Regedit.exe registry utility.
Figure 3.22 Editing a string.
Figure 3.23 Menu color properties.
Figure 3.24 The Export Registry File dialog.
What Did I Just Learn?
An important part of the Windows operating system is the Registry. If mishandled, editing the Registry can cause system instability or render the OS inoperable. Care must always be taken when working in the Registry. In this section, you learned how to modify the Registry as well as export the Registry. You practiced the skills needed to
-
Use RegEdit to change a string
-
Export the Registry and view its size