770 likes | 781 Views
Understand the role of the registry in Windows, learn how to back up and modify it, and troubleshoot common Windows problems. Explore the registry files, their locations, and descriptions. Discover the process of viewing and editing the registry, as well as creating restore points. Gain insight into the Windows startup process and learn how to modify system startup settings.
E N D
Chapter 7 Under the Windows Desktop McGraw-Hill
Learning Outcomes • Define the role of the registry in Windows, and back up and modify the registry when needed • Describe the Windows startup process • Install and manage device drivers • Troubleshoot common Windows problems
Understanding the Registry • The Registry Defined • Database of configuration settings for • Device drivers • Services • Installed application programs • Operating system components • User Preferences
Understanding the Registry • Automatic Registry Changes when: • Windows starts up or shuts down • Windows Setup runs • Changes are mode through a Control Panel applet • A new device is installed • Any changes are made to the Windows configuration • Any changes are made to a user’s preferences • An application is installed or modified • Changes are made to application user preferences
Understanding the Registry (cont.) • Registry Files (hives) • DEFAULT • NTUSER.DAT • SAM • SECURITY • SOFTWARE • SYSTEM
Understanding the Registry (cont.) • Registry file locations • C:\WINDOWS\SYSTEM32\CONFIG • All but NTUSER.DAT
Figure 7-1 This view of the CONFIG folder shows registry files
Understanding the Registry (cont.) • Registry File Descriptions • SYSTEM • What to load at startup • Order of loading at startup • Settings for drivers, services, OS components • SOFTWARE • Settings for installed software • Other configuration information • SECURITY • Security policies
Understanding the Registry (cont.) • Registry File Descriptions • SAM • Security Accounts Manager • Local security accounts database • DEFAULT • User profile settings • Used when no user is logged on • Logon screen
Understanding the Registry (cont.) • Registry File Descriptions • NTUSER.DATA • User profile for a single user • Application preferences, screen colors, and more • After a user logs on, that user’s NTUSER.DAT is loaded • Saved in top-level personal folder for the user • Hidden file
Figure 7-2 The default user profile used until a user logs on
Understanding the Registry (cont.) • Viewing and Editing the Registry • View and edit the registry with REGEDIT.EXE • Navigation similar to Windows Explorer • Key: a folder containing settings and other keys • Root keys: five keys at the top of the hierarchy • Value entry: settings within a key • Data type: format of a value entry
Understanding the Registry (cont.) • Backing up the Registry • Create a Restore Point • Backs up the registry and the entire OS • Use REDEGIT to back up all or a portion • Use Export Registry File option • Double-click on the .REG file to restore
Step-by-Step 7.01 Understanding the Registry Creating a Restore Point in System Restore
The Windows Startup Process • Phases of the Startup Process • Power-on Self-test • Initial Startup • Boot Loader • Windows XP Boot Loader Phase • NTLDR reads BOOT.INI • Windows Vista and Windows 7 Boot Loader Phase • BOOTMGR (boot loader) reads BCD • WINLOAD.EXE is OS loader • Detect and Configure Hardware
The Windows Startup Process • Phases of the Startup Process (cont.) • Kernel Loading • NTOSKRNL.EXE loads into memory • Hardware abstraction layer (HAL) loads • System portion of the registry loads • Drivers required at startup load • Kernel initializes services and drivers and loads other code • Kernel switches Windows to GUI mode • CSRSS.EXE user-mode code starts • PAGEFILE.SYS created and WINLOGON.EXE started
The Windows Startup Process • Phases of the Startup Process (cont.) • Logon • User Logon • Program Startup • Plug and Play Detection
The Windows Startup Process • Modifying System Startup • Modifying System Startup for Windows XP • BOOT.INI must be modified directly or indirectly • System Properties | Advanced | Startup and Recovery
The Windows Startup Process • BOOT.INI for a Dual-boot System [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Windows XP Professional”/fastdetect multi(0)disk(0)rdisk(0)partition(2)\WINNT=”Windows 2000 Professional”/fastdetect
The Windows Startup Process • Simple BOOT.INI [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Windows XP Professional”/fastdetect
The Windows Startup Process • Modifying System Startup for Windows Vista and Windows 7 • Boot configuration database (BCD) is a hidden part of the registry • C:\BOOT\BCD • Contains • Locale information • Location of the boot disk • Location of the Windows files • Other startup information
The Windows Startup Process • Modifying System Startup for Windows Vista and Windows 7 • Directly edit BDC using BCDEDIT • Modify in Startup and Recovery dialog
Step-by-Step 7.02 Understanding the Registry Modifying System Startup for Windows 7
Installing and Managing Device Drivers • Finding Device Drivers • In addition to drivers that are available on the Windows distribution CD, you can find more current drivers: • On the disc that came with the device • On the Web site of the manufacturer of the device
Installing and Managing Device Drivers • Installing Device Drivers • Windows comes with a huge cache of device drivers • Windows and virtually all devices for PCs are plug and play • Some devices require that you install the driver before connecting the device • Always read the instructions
Installing and Managing Device Drivers • Installing Device Drivers (cont.) • Permissions • Administrator privileges to install • An administrator must log on for Windows XP • Respond to UAC prompts in Windows Vista and Windows 7
Installing and Managing Device Drivers • Installing Device Drivers (cont.) • Signed versus Unsigned Device Drivers • Code signing an encrypted digital signature in the file • Driver signing is code signing of device driers
Installing and Managing Device Drivers • Managing Installed Devices • Disconnecting Devices • Does not uninstall driver • Use Safely Remove Hardware for storage devices The Windows XP Safely Remove Hardware icon
Figure 7-10 Select Safely Remove Hardware from the hidden icons
Installing and Managing Device Drivers • Managing Installed Devices (cont.) • Devices and Printers • Overview of most obvious devices • Access to tools for each device
Installing and Managing Device Drivers • Managing Installed Devices (cont.) • Using Device Manager to Manage Device Drivers • View and change device properties • Update device drivers • Configure Device settings • Uninstall devices • Roll back driver update
Step-by-Step 7.03 Understanding the Registry Getting to Know Device Manager
Troubleshooting Windows Problems • Troubleshooting with Modified Startups • The Advanced Boot Options Menu • Repair Your Computer (Windows 7 Only) • Startup Repair • System Restore • System Image Recovery • Windows Memory Diagnostic • Command Prompt • Safe Mode (three variants)
Figure 7-15 The Windows Advanced Options Menu for Windows XP