understanding and using the registry chapter twenty two

61
Understanding and Understanding and Using the Registry Using the Registry Chapter Twenty Two Chapter Twenty Two

Upload: damian-mcdonald

Post on 17-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Understanding and Using the Registry Chapter Twenty Two

Understanding and Using Understanding and Using the Registrythe Registry

Chapter Twenty TwoChapter Twenty Two

Page 2: Understanding and Using the Registry Chapter Twenty Two

What is it?What is it?

•Heart of Windows XPHeart of Windows XP

•Contains the setting to run Contains the setting to run windowswindows

•Anywhere from 50,000 to Anywhere from 50,000 to 100,000 entries are common.100,000 entries are common.

Page 3: Understanding and Using the Registry Chapter Twenty Two

Registry EditorsRegistry Editors

• Regedit and Regedit and Regedt32 are Regedt32 are the same.the same.

• Backup your Backup your registry:registry:– Choose a key to Choose a key to

back upback up

Page 4: Understanding and Using the Registry Chapter Twenty Two

Backup a keyBackup a key

• Name it and Save itName it and Save it

• You can now view, edit it, or import it You can now view, edit it, or import it back.back.

Page 5: Understanding and Using the Registry Chapter Twenty Two

Registry KeysRegistry Keys

• Five Sub trees:Five Sub trees:1.1. HKEY_CLASSESS_ROOTHKEY_CLASSESS_ROOT

2.2. HKEY_CURRENT_USERHKEY_CURRENT_USER

3.3. HKEY_LOCAL_MACHINEHKEY_LOCAL_MACHINE

4.4. HKEY_USERSHKEY_USERS

5.5. HKEY_CURRENT_CONFIGHKEY_CURRENT_CONFIG

Page 6: Understanding and Using the Registry Chapter Twenty Two

Registry Data TypesRegistry Data Types

String REG_SZMulti-String REG_MULTI_SZExpandable String

REG_EXPAND_SZ

Binary REG_BINARYDWORD REG_DWORD

Page 7: Understanding and Using the Registry Chapter Twenty Two

Where the Registry is Where the Registry is storedstored• In Windows\system32\configIn Windows\system32\config• Five main HivesFive main Hives

1.1. SystemSystem2.2. SAMSAM3.3. SecuritySecurity4.4. SoftwareSoftware5.5. DefaultDefault

• Ntuser.dat: information in the Ntuser.dat: information in the HKEY_CURRENT_USER sub-tree.HKEY_CURRENT_USER sub-tree.

Page 8: Understanding and Using the Registry Chapter Twenty Two

Adding a Key or ValueAdding a Key or Value

•Steps on p. 733 – 734Steps on p. 733 – 734

•Example: p. 734 – 735Example: p. 734 – 735

Page 9: Understanding and Using the Registry Chapter Twenty Two

Using Scripts to Automate Using Scripts to Automate Windows XPWindows XP

Chapter Twenty ThreeChapter Twenty Three

Page 10: Understanding and Using the Registry Chapter Twenty Two

What is Scripting?What is Scripting?

•A form of programmingA form of programming– Scripts are interpretedScripts are interpreted– Scripts provide limited functionalityScripts provide limited functionality– Scripts are “clear text”Scripts are “clear text”

•Batch files are a type of ScriptingBatch files are a type of Scripting– May use the .bat or .cmd extensionMay use the .bat or .cmd extension

Page 11: Understanding and Using the Registry Chapter Twenty Two

Creating a ScriptCreating a Script

•Use Notepad, but do not use .txt Use Notepad, but do not use .txt extensionsextensions

•Practice page 739 – 744.Practice page 739 – 744.

Page 12: Understanding and Using the Registry Chapter Twenty Two

WSHWSH

•Windows Script HostWindows Script Host– VBScriptVBScript– XML based ScriptsXML based Scripts

•Practice p 746 – 749.Practice p 746 – 749.

Page 13: Understanding and Using the Registry Chapter Twenty Two

Advance ConceptsAdvance Concepts

•Objects:Objects:– Intrinsic Objects (internal)Intrinsic Objects (internal)

•The WScript Object (print info to the The WScript Object (print info to the screen)screen)

•The Err Object (traps errors)The Err Object (traps errors)– Callable Objects (external)Callable Objects (external)

•Scripts can be Automated, or Scripts can be Automated, or scheduled.scheduled.

Page 14: Understanding and Using the Registry Chapter Twenty Two

Practice:Practice:

•AddUser.wsf (p. 752 – 753)AddUser.wsf (p. 752 – 753)

•ChangeRole.wsf (p. 753 – 754)ChangeRole.wsf (p. 753 – 754)

•LogEvent.vbs (p. 755)LogEvent.vbs (p. 755)

Page 15: Understanding and Using the Registry Chapter Twenty Two

Disaster Prevention and Disaster Prevention and RecoveryRecovery

Chapter Twenty FourChapter Twenty Four

Page 16: Understanding and Using the Registry Chapter Twenty Two

Avoiding CrashesAvoiding Crashes

• Buy reliable HardwareBuy reliable Hardware

• Protect against environmental problemsProtect against environmental problems– Incorrect voltageIncorrect voltage– Loss of powerLoss of power– Spikes and SurgesSpikes and Surges

• Install properlyInstall properly

• Use signed driversUse signed drivers

• Shutdown properlyShutdown properly

• Backup regularlyBackup regularly

Page 17: Understanding and Using the Registry Chapter Twenty Two

Practice PreventionPractice Prevention

• Defrag filesDefrag files

Page 18: Understanding and Using the Registry Chapter Twenty Two

Cleaning up DisksCleaning up Disks

• Options includeOptions include– Disk CleanupDisk Cleanup– More OptionsMore Options

Page 19: Understanding and Using the Registry Chapter Twenty Two

Check for disk ErrorsCheck for disk Errors

• ScandiskScandisk– Automatically Fix Automatically Fix

filesfiles– Recovery of bad Recovery of bad

sectorssectors

Page 20: Understanding and Using the Registry Chapter Twenty Two

Restoring a ConfigurationRestoring a Configuration

• Last Known GoodLast Known Good• System RestoreSystem Restore

– Automatic restore pointsAutomatic restore points– Manual restore pointsManual restore points– Disable system restore Disable system restore

• Automated System Recovery (ASR)Automated System Recovery (ASR)• Recovery ConsoleRecovery Console

– Add with \i386\winnt32 /cmdconsAdd with \i386\winnt32 /cmdcons– Note list of commands on page 772Note list of commands on page 772

Page 21: Understanding and Using the Registry Chapter Twenty Two

Driver VerifierDriver Verifier

• Command prompt >”Command prompt >”verifier”verifier”• System File CheckerSystem File Checker

– Note table 24.3 page 780Note table 24.3 page 780

• Make your system Make your system “Blue Screen”“Blue Screen”– Backup your registryBackup your registry– RegeditRegedit– HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\

Services\i8042prt\ParametersServices\i8042prt\Parameters– Create a key “CrashOnCtrlScroll” as a DWORDCreate a key “CrashOnCtrlScroll” as a DWORD– Enter the value 1 and rebootEnter the value 1 and reboot– Press “Ctrl+ScrollLock+ScrollLock” (CTRL on the right)Press “Ctrl+ScrollLock+ScrollLock” (CTRL on the right)

Page 22: Understanding and Using the Registry Chapter Twenty Two

Backing up and RestoringBacking up and Restoring

• Making a BackupMaking a Backup– Use Backup Restore Wizard (p. 782 – 783)Use Backup Restore Wizard (p. 782 – 783)

• Types of backupsTypes of backups– NormalNormal all select filesall select files Clears ABClears AB

– CopyCopy all select filesall select files Does not Does not clear ABclear AB

– DifferentialDifferential all select files changed Last N/Iall select files changed Last N/I Leaves Leaves AB onAB on

– IncrementalIncremental all select files changed Last I/Nall select files changed Last I/N turns off turns off ABAB

– DailyDaily all files modified todayall files modified today

Page 23: Understanding and Using the Registry Chapter Twenty Two

Advanced Troubleshooting Advanced Troubleshooting MethodologyMethodology

Chapter Twenty FiveChapter Twenty Five

Page 24: Understanding and Using the Registry Chapter Twenty Two

Step to TroubleshootingStep to Troubleshooting

• Define the ProblemDefine the Problem

• ExploreExplore

• BrainstormBrainstorm

• Test your IdeasTest your Ideas

• RepairRepair

• Clean up after yourselfClean up after yourself

• Provide ClosureProvide Closure

• DocumentDocument

Page 25: Understanding and Using the Registry Chapter Twenty Two

Troubleshooting PrintingTroubleshooting Printing

• Pages 790 – 793Pages 790 – 793

Page 26: Understanding and Using the Registry Chapter Twenty Two

Troubleshooting XP SetupTroubleshooting XP Setup

• Does your computer meet the Does your computer meet the requirements?requirements?

• Do you have the right Device Drivers?Do you have the right Device Drivers?

• Know your SCSIKnow your SCSI

• From Text to GUIFrom Text to GUI– Do you need a customized HAL?Do you need a customized HAL?

• MBR issuesMBR issues– Don’t use FDISK/MBR if you have a boot-sector Don’t use FDISK/MBR if you have a boot-sector

virusvirus

Page 27: Understanding and Using the Registry Chapter Twenty Two

Stop ErrorsStop Errors

• Common Stop Error listed on pages Common Stop Error listed on pages 800 – 801.800 – 801.

• Possible fixes:Possible fixes:– Write down the message and rebootWrite down the message and reboot– Suspect recent changesSuspect recent changes– Check the system BIOSCheck the system BIOS– Check Microsoft Knowledge BaseCheck Microsoft Knowledge Base

Page 28: Understanding and Using the Registry Chapter Twenty Two

Advanced TopicsAdvanced Topics

Part FivePart Five

Page 29: Understanding and Using the Registry Chapter Twenty Two

The Microsoft The Microsoft Management ConsoleManagement Console

Chapter Twenty SixChapter Twenty Six

Page 30: Understanding and Using the Registry Chapter Twenty Two

Basic Features of MMCBasic Features of MMC

• One interface for lots of toolsOne interface for lots of tools

• Used by software vendersUsed by software venders

• Build your own consolesBuild your own consoles

• Customize for Administrative tasksCustomize for Administrative tasks

• Help feature if really goodHelp feature if really good

Page 31: Understanding and Using the Registry Chapter Twenty Two

Terms to KnowTerms to Know

• Console:Console:

• Snap-ins:Snap-ins:

• Extensions:Extensions:

Page 32: Understanding and Using the Registry Chapter Twenty Two

ConsoleConsole

• Four different modesFour different modes1.1. Author modeAuthor mode

2.2. User mode – full accessUser mode – full access

3.3. User mode – Limited access, multiple User mode – Limited access, multiple windowwindow

4.4. User mode – Limited access, single User mode – Limited access, single windowwindow

Page 33: Understanding and Using the Registry Chapter Twenty Two

Snap-insSnap-ins

• List of available snap-in pages 810 – List of available snap-in pages 810 – 811811

• Working with Snap-ins pages 812 – Working with Snap-ins pages 812 – 817817

Page 34: Understanding and Using the Registry Chapter Twenty Two

Computer Management Computer Management Console Console (built in)(built in)

• Access through Administrative ToolsAccess through Administrative Tools

Page 35: Understanding and Using the Registry Chapter Twenty Two

Three sets of toolsThree sets of tools

• System ToolsSystem Tools

• StorageStorage

• Services and ApplicationsServices and Applications

Page 36: Understanding and Using the Registry Chapter Twenty Two

Customization OptionsCustomization Options

• FileFile

• ActionAction– New Windows New Windows

from herefrom here– New Taskpad New Taskpad

ViewView– RenameRename– Export listExport list– HelpHelp

Page 37: Understanding and Using the Registry Chapter Twenty Two

TaskpadTaskpad

• A graphical HTML A graphical HTML window customized window customized for a specific MMC for a specific MMC plug-in.plug-in.

Page 38: Understanding and Using the Registry Chapter Twenty Two

Creating a new TaskpadCreating a new Taskpad

• Taskpad View Taskpad View wizardwizard

Page 39: Understanding and Using the Registry Chapter Twenty Two

Taskpad TargetTaskpad Target

• What this Taskpad What this Taskpad view will apply toview will apply to

Page 40: Understanding and Using the Registry Chapter Twenty Two

Name that TaskpadName that Taskpad

• Use the same or Use the same or name itname it

Page 41: Understanding and Using the Registry Chapter Twenty Two

Taskpad View WizardTaskpad View Wizard

• Now add oneNow add one

Page 42: Understanding and Using the Registry Chapter Twenty Two

Taskpad View WizardTaskpad View Wizard

• Three types:Three types:– Menu CommandMenu Command– Shell CommandShell Command– NavigationNavigation

Page 43: Understanding and Using the Registry Chapter Twenty Two

Taskpad View WizardTaskpad View Wizard

• Selected TaskSelected Task

• Gives you flexibility with your Snap-in Gives you flexibility with your Snap-in toolstools

Page 44: Understanding and Using the Registry Chapter Twenty Two

Manage Windows XP Manage Windows XP Professional ServicesProfessional Services

Chapter Twenty SevenChapter Twenty Seven

Page 45: Understanding and Using the Registry Chapter Twenty Two

Why Services ExistWhy Services Exist

• They provide the interfaces that They provide the interfaces that allow you to connect to services such allow you to connect to services such as…as…– InternetInternet– UPSUPS– Other interfacesOther interfaces

• They run in the backgroundThey run in the background

Page 46: Understanding and Using the Registry Chapter Twenty Two

The Service Management The Service Management ConsoleConsole

• Snap-in from Administrative ToolsSnap-in from Administrative Tools

Page 47: Understanding and Using the Registry Chapter Twenty Two

Windows XP Pro ServicesWindows XP Pro Services

• Automatic Services (pages 827 – Automatic Services (pages 827 – 829)829)

• Manual Services (pages 830 – 832)Manual Services (pages 830 – 832)

• Disabled Services (page 832)Disabled Services (page 832)

• Additional Services (page 833)Additional Services (page 833)

Page 48: Understanding and Using the Registry Chapter Twenty Two

Configuring ServicesConfiguring Services

• You can modify how they workYou can modify how they work

• Set properties for eachSet properties for each

• Start and Stop servicesStart and Stop services– Through the command lineThrough the command line– Through the consoleThrough the console

Page 49: Understanding and Using the Registry Chapter Twenty Two

Configuring ServicesConfiguring Services

• General StartupGeneral Startup– Right click the Right click the

serviceservice– Select PropertiesSelect Properties– Example of DNS Example of DNS

Client Service Client Service General TabGeneral Tab

Page 50: Understanding and Using the Registry Chapter Twenty Two

DNS Client ServicesDNS Client Services

• Log On tabLog On tab– Local System Local System

AccountAccount– Allow service to Allow service to

interact with interact with desktopdesktop

– This AccountThis Account– Hardware ProfileHardware Profile

Page 51: Understanding and Using the Registry Chapter Twenty Two

DNS Client ServicesDNS Client Services

• Recovery TabRecovery Tab– Take no actionTake no action– Restart the ServiceRestart the Service– Run a ProgramRun a Program– Restart the Restart the

ComputerComputer

Page 52: Understanding and Using the Registry Chapter Twenty Two

DNS Client ServicesDNS Client Services

• Dependencies TabDependencies Tab

Page 53: Understanding and Using the Registry Chapter Twenty Two

Service CommandsService Commands

• (optional practice using telnet p. 837 (optional practice using telnet p. 837 – 839)– 839)

Page 54: Understanding and Using the Registry Chapter Twenty Two

Hosting Web/FTP ServersHosting Web/FTP Servers

Chapter Twenty EightChapter Twenty Eight

Page 55: Understanding and Using the Registry Chapter Twenty Two

Installing IISInstalling IIS

• Through Add or Through Add or Remove ProgramsRemove Programs

• Add/Remove Add/Remove Windows Windows ComponentsComponents

• Choose IIS and Choose IIS and click Detail buttonclick Detail button

Page 56: Understanding and Using the Registry Chapter Twenty Two

To install or not to install?To install or not to install?

•Pages 842 – 843 Pages 842 – 843

Page 57: Understanding and Using the Registry Chapter Twenty Two

Limits on IISLimits on IIS

•Limited to 10 concurrent Limited to 10 concurrent connections over TCP/IPconnections over TCP/IP

Page 58: Understanding and Using the Registry Chapter Twenty Two

What is there?What is there?

• IIS includes a Service ConsoleIIS includes a Service Console

•You can administer remotelyYou can administer remotely

•You can configure a Web serverYou can configure a Web server– Not practical on XP ProfessionalNot practical on XP Professional

Page 59: Understanding and Using the Registry Chapter Twenty Two

Generic Web Site Generic Web Site ConfigurationConfiguration

• ISAPI FiltersISAPI Filters

•Home DirectoryHome Directory

•DocumentsDocuments

•Directory SecurityDirectory Security

•HTTP HeadersHTTP Headers

•Custom ErrorsCustom Errors

Page 60: Understanding and Using the Registry Chapter Twenty Two

Specific Web Site Specific Web Site ConfigurationConfiguration

•Web siteWeb site•Configuring the FTP serverConfiguring the FTP server

– FTP SiteFTP Site– Security AccountsSecurity Accounts– MessagesMessages– Home DirectoryHome Directory– Virtual DirectoriesVirtual Directories

Page 61: Understanding and Using the Registry Chapter Twenty Two

Configuring the SMTP Configuring the SMTP ServerServer