Understanding and Using Understanding and Using the Registrythe Registry
Chapter Twenty TwoChapter 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.
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
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.
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
Registry Data TypesRegistry Data Types
String REG_SZMulti-String REG_MULTI_SZExpandable String
REG_EXPAND_SZ
Binary REG_BINARYDWORD REG_DWORD
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.
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
Using Scripts to Automate Using Scripts to Automate Windows XPWindows XP
Chapter Twenty ThreeChapter Twenty Three
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
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.
WSHWSH
•Windows Script HostWindows Script Host– VBScriptVBScript– XML based ScriptsXML based Scripts
•Practice p 746 – 749.Practice p 746 – 749.
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.
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)
Disaster Prevention and Disaster Prevention and RecoveryRecovery
Chapter Twenty FourChapter Twenty Four
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
Practice PreventionPractice Prevention
• Defrag filesDefrag files
Cleaning up DisksCleaning up Disks
• Options includeOptions include– Disk CleanupDisk Cleanup– More OptionsMore Options
Check for disk ErrorsCheck for disk Errors
• ScandiskScandisk– Automatically Fix Automatically Fix
filesfiles– Recovery of bad Recovery of bad
sectorssectors
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
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)
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
Advanced Troubleshooting Advanced Troubleshooting MethodologyMethodology
Chapter Twenty FiveChapter Twenty Five
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
Troubleshooting PrintingTroubleshooting Printing
• Pages 790 – 793Pages 790 – 793
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
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
Advanced TopicsAdvanced Topics
Part FivePart Five
The Microsoft The Microsoft Management ConsoleManagement Console
Chapter Twenty SixChapter Twenty Six
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
Terms to KnowTerms to Know
• Console:Console:
• Snap-ins:Snap-ins:
• Extensions:Extensions:
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
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
Computer Management Computer Management Console Console (built in)(built in)
• Access through Administrative ToolsAccess through Administrative Tools
Three sets of toolsThree sets of tools
• System ToolsSystem Tools
• StorageStorage
• Services and ApplicationsServices and Applications
Customization OptionsCustomization Options
• FileFile
• ActionAction– New Windows New Windows
from herefrom here– New Taskpad New Taskpad
ViewView– RenameRename– Export listExport list– HelpHelp
TaskpadTaskpad
• A graphical HTML A graphical HTML window customized window customized for a specific MMC for a specific MMC plug-in.plug-in.
Creating a new TaskpadCreating a new Taskpad
• Taskpad View Taskpad View wizardwizard
Taskpad TargetTaskpad Target
• What this Taskpad What this Taskpad view will apply toview will apply to
Name that TaskpadName that Taskpad
• Use the same or Use the same or name itname it
Taskpad View WizardTaskpad View Wizard
• Now add oneNow add one
Taskpad View WizardTaskpad View Wizard
• Three types:Three types:– Menu CommandMenu Command– Shell CommandShell Command– NavigationNavigation
Taskpad View WizardTaskpad View Wizard
• Selected TaskSelected Task
• Gives you flexibility with your Snap-in Gives you flexibility with your Snap-in toolstools
Manage Windows XP Manage Windows XP Professional ServicesProfessional Services
Chapter Twenty SevenChapter Twenty Seven
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
The Service Management The Service Management ConsoleConsole
• Snap-in from Administrative ToolsSnap-in from Administrative Tools
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)
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
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
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
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
DNS Client ServicesDNS Client Services
• Dependencies TabDependencies Tab
Service CommandsService Commands
• (optional practice using telnet p. 837 (optional practice using telnet p. 837 – 839)– 839)
Hosting Web/FTP ServersHosting Web/FTP Servers
Chapter Twenty EightChapter Twenty Eight
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
To install or not to install?To install or not to install?
•Pages 842 – 843 Pages 842 – 843
Limits on IISLimits on IIS
•Limited to 10 concurrent Limited to 10 concurrent connections over TCP/IPconnections over TCP/IP
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
Generic Web Site Generic Web Site ConfigurationConfiguration
• ISAPI FiltersISAPI Filters
•Home DirectoryHome Directory
•DocumentsDocuments
•Directory SecurityDirectory Security
•HTTP HeadersHTTP Headers
•Custom ErrorsCustom Errors
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
Configuring the SMTP Configuring the SMTP ServerServer