*
* Actually, there is a way around this. You can copy the hive file containing HKEY_CURRENT_USER if
you log out and log in as a different user. And you can access all of the hive files if you have a dualboot
setup (see Chapter 1) and you start one of the other operating systems installed on your PC.
Registry Tasks and Tools | 117
The Registry
This means you have to use a procedure like the following if you want a
backup you can create and restore at will. You may want to do this, for
instance, just before you install a new program or device driver.
1. Open Registry Editor, and collapse all the branches so only the five
main root keys are showing.
2. Highlight HKEY_CURRENT_USER.
3. From the File menu, select Export.
4. From the Save as type list, choose Registry Hive Files (*.*).
5. Type a filename, and give it the .hive filename extension (e.g., hkey_
current_user.hive). RegEdit won??™t do this for you, nor will Windows recognize
the .hive extension by default, but it will make the files much easier
for you to identify than if they have no extension, which is the
default. See ???File Type Associations,??? later in this chapter, to see how to
properly register a new file type.
6. Choose a folder to store the backup, and click Save.
7. Next, highlight HKEY_LOCAL_MACHINE, and repeat steps 3??“6. Make sure to
choose a different filename for this branch (e.g., hkey_local_machine.hive).
8. To restore either or both of these backups, and replace the current Registry
with the data in your backup hive files, select Import from the Registry
Editor??™s File menu.
Pages:
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182