Title: Protecting Your System Backing Up and the Registry
1Chapter 14
- Protecting Your System - Backing Up and the
Registry
2Overview
- It is important to protect your OS.
3Overview
- Two ways to protect the OS
- backup files and
- programs
- backup the registry
-
4Overview
- Registry
- central database for all Windows
configuration - information.
5Overview
- Many of the changes that can be done to the
computer can only take place by editing the
Registry.
6Procedures
- Be very careful when working with the Registry
- if Registry is damaged
- may not be able to boot
- into OS
- OS may become
- inoperable
7Procedures
- OS provides tools to assist user when changing
Registry files.
8Procedures
- By understanding how the computer works, the
easier it is to diagnose and solve computer
problems.
9Backing up Your System
- A backup is
- a duplicate of a file or files copied to
another - disk or tape.
10Backing up Your System
- A user can backup
- application files
- program files
- an entire hard drive
11Backing up Your System
- There are two major types of backup.
12Backing up Your System
- It is a good idea to have more than one copy of a
backup disk.
13Backing up Your System
- Windows OS provides a backup program called
Backup.
14(No Transcript)
15Restore
- Restore option in Backup lets user copy files
from backup disk or tape to original disk, or to
another disk or directory.
16(No Transcript)
17The Startup Disk
- The startup disk is different than a backup disk.
18The Startup Disk
- The startup disk allows user to boot their system
if something goes wrong, and the backup disk does
not.
19(No Transcript)
20Initialization Files
- Configuration information provides details about
the OS.
21Initialization Files
- Initialization (.INI) files
- store the system configuration info
22Initialization Files
- Two primary initialization files
- WIN.INI
- SYSTEM.INI
23The Registry
- Windows 95 and Windows 98 store all configuration
information in the Registry.
24The Registry
- Registry data is kept in two files
- USER.DAT
- SYSTEM.DAT
25The Registry
- SYSTEM.DAT
- contains all system
- configuration and
- setting of data
- is contained in the
- Windows directory
26The Registry
- USER.DAT
- contains all user-
- specific settings
- is contained in the
- Windows directory
27The Registry
- If Registry is corrupt Windows 95 or Windows 98
will not even start.
28The Registry
- For user protection Windows 98 provides the
Registry Checker.
29The Registry
- The Registry was designed to replace
- AUTOEXEC.BAT
- CONFIG.SYS
- all .INI files
30Backing up the Registry
- Even though Windows 95 and Windows 98 make backup
copies of the Registry, you can still experience
problems.
31Backing up the Registry
- Last known good
- when Windows 95 saves USER.DAT and
- SYSTEM.DAT files from
- last successful boot.
32Backing up the Registry
- If user has to continuously reboot, there may be
no good copies of Registry from which to boot.
33Backing up the Registry
- There are three ways the Registry can become
corrupted.
34Backing up the Registry
- Best protection is to backup entire Registry.
35Backing up the Registry by Copying the Registry
Files
- Using the batch file - BKUPREG.BAT - is one
method of backing up the Registry.
36Backing up the Registry by Copying the Registry
Files
- Two problems associated with using BACKUP.REG
- may not have most
- recent changes made
- to Registry
- may be more than one
- USER.DAT file
37Backing up the Registry by Copying the Registry
Files
- System Policy Editor
- the tool used to customize user settings
in - USER.DAT
38(No Transcript)
39Backing up the Registry Using CFGBACK (Windows 95)
- CFGBACK
- a special backup utility provided with
Windows - 95.
40Backing up the Registry Using CFGBACK (Windows 95)
- CFGBACK consists of two files
- CFGBACK.EXE
- CFGBACK.HLP
41Backing up the Registry Using CFGBACK (Windows 95)
- Two problems associated with using CFGBACK
- cannot run from
- command line prompt
- if more than one user,
- it will not make
- backups of the users
- information.
42Backing up the Registry Using CFGBACK (Windows 95)
- One advantage in using CFGBACK is its ability to
restore a good version of the Registry, should it
become corrupt when installing new hardware
devices.
43(No Transcript)
44The Registry Checker (Windows 98)
- Registry Checker
- automatically scans the Registry upon
startup.
45The Registry Checker (Windows 98)
- The Registry Checker can be run manually.
46The Registry Checker (Windows 98)
- Two versions of Registry Checker
- ScanRegW
- ScanReg
47The Registry Checker (Windows 98)
- Both versions of Registry Checker also have
command line options.
48(No Transcript)
49Restoring the Registry (Windows 95)
- SCANREG/RESTORE
- provides a list of known good .CAB files
50Restoring the Registry (Windows 95)
- Two scenarios in which SCANREG/RESTORE would be
used - no boot
- boot
51Alternatives to Editing the Registry
- Windows 95 and Windows 98 Registry structures are
not significantly different.
52Alternatives to Editing the Registry
- Simplest and safest way to make changes to the
Registry is to use Control Panel.
53Alternatives to Editing the Registry
- Most dangerous way to make changes to the
Registry is to use Registry Editor.
54Structure of the Registry
- The hierarchy of the Registry can be seen by
opening the Registry Editor.
55Structure of the Registry
- Like folders and subfolders found in Explorer,
Registry Editor contains keys and subkeys.
56Structure of the Registry
- Registry Editor contains three types of objects
- keys
- values
- data
57Structure of the Registry
- Keys can contain one or more keys and values.
This is known as nesting.
58Structure of the Registry
- Values have three parts
- data type
- data name
- data value
59Structure of the Registry
- There are three types of data
- binary
- strings
- DWORD (double word)
60Structure of the Registry
- In the Registry Editor there appears to be six
keys.
61Structure of the Registry
- In reality, there are two main keys
- HKEY_Local_Machine
- HKEY_Users
62Structure of the Registry
- The other four keys are aliases for the two main
keys.
63Structure of the Registry
- Aliases are needed for backwards compatibility
(earlier versions of OS)
64Structure of the Registry
- HKEY_Local_Machine
- major key that contains configuration data
- specific to the computer.
65Structure of the Registry
- HKEY_Classes_Root
- it is an alias for
- HKEY_Local_Machine.
66Structure of the Registry
- HKEY_Current_Config
- it is an alias for
- HKEY_Local_Machine
67Structure of the Registry
- HKEY_Dyn_Data
- it is an alias for
- HKEY_Local_Machine
68Structure of the Registry
- HKEY_Users
- the other major key that contains
configuration - info for any user who logs onto the
computer.
69Structure of the Registry
- HKEY_Current_User
- it is the alias for
- HKEY_User.
70Structure of the Registry
- Registry files should not be copied from one
computer to another because HKEY files are
specific to each computer.
71Structure of the Registry
- Subkeys also contain preferences that are
specific to a user.
72Files and the Registry
- When a registered file is clicked, Windows looks
for the type of file associated with that
extension in the HKEY_CLASSES_ROOT key.
73Files and the Registry
- Every file extension has two entries in
HKEY_CLASSES_ROOT - the extension (.EXT)
- the ProgID
74Files and the Registry
- An application will register the file extension
that it wants Windows to use when the application
icon is clicked.
75Files and the Registry
- Some common subkeys for file types are
- CLSID
- DefaultIcon
- EditFlags
- Shell
- ShellEx
- Quick View options
76REGEDIT
- REGEDIT.EXE
- the tool provided by Windows to make
- changes to the Registry.
77REGEDIT
- In the Registry Editor menu there are only four
menu choices - Registry
- Edit
- View
- Help
78REGEDIT
- The Registry can be safely edited if it is
exported to a text file.
79REGEDIT
- These text files have the .REG extension.
80REGEDIT
- REGEDIT can be run from
- Windows - graphical
- program
- MS-DOS - command
- line
-
81Using REGEDIT to Add New Items to a Context Menu
- REGEDIT can be used to add items to context menus.
82(No Transcript)
83Using REGEDIT to See Your Bitmap Icons
- A bitmap icon can be changed to show the actual
image instead of the generic .BMP icon.
84(No Transcript)
85Altering the Save Settings on Exit
- To save the same desktop settings from work
session to work session, must first disable the
Save Settings feature.
86Altering the Save Settings on Exit
- In Windows 95 and Windows 98 the settings must be
changed in the Registry by using either - the System Policy Editor
- the Registry Editor
87(No Transcript)