windows 7 inside out chapter 21 - performing routine maintenance last modified 11-16-10
TRANSCRIPT
![Page 1: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/1.jpg)
Windows 7Windows 7Inside OutInside Out
Chapter 21 - Performing Routine Chapter 21 - Performing Routine MaintenanceMaintenance
Last modified 11-16-10
![Page 2: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/2.jpg)
EditionsEditions
Everything in this chapter is the same for Everything in this chapter is the same for all editionsall editions
![Page 3: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/3.jpg)
Maintenance Maintenance
Update Windows and driversUpdate Windows and drivers Check your disks for errorsCheck your disks for errors Defragment your hard disks Defragment your hard disks Perform regular backups (covered in Perform regular backups (covered in
chapter 11)chapter 11)
![Page 4: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/4.jpg)
Action Center
![Page 5: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/5.jpg)
Action Center
Shows a red X on the flag when there is a problem
![Page 6: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/6.jpg)
Action Center
![Page 7: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/7.jpg)
Updates
![Page 8: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/8.jpg)
Windows Update
Can be set to update all Microsoft products, not just Windows
![Page 9: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/9.jpg)
Update Settings
![Page 10: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/10.jpg)
Updating Device Drivers
Some drivers are included in Windows Updates, but many are not
You will need to visit your device vendor's website, or your computer vendor's website, to find updates
![Page 11: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/11.jpg)
Updating Many Computers
Microsoft Update Catalog (link Ch 21a) Download installable versions of updates
![Page 12: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/12.jpg)
WSUS (Windows Server Update Services)
Manages and deploys updates from a server running Windows Server 2003 or 2008
Link Ch 21b
![Page 13: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/13.jpg)
WindizUpdateWindizUpdate(not in lecture notes)(not in lecture notes)
Allows updates for pirated Windows Allows updates for pirated Windows installations, through Firefoxinstallations, through Firefox Links Ch 21c, 21dLinks Ch 21c, 21d
![Page 14: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/14.jpg)
Checking Disks for Errors
![Page 15: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/15.jpg)
Checking Disks for Errors Checking Disks for Errors
Disk errors can prevent files from opening, or Disk errors can prevent files from opening, or cause blue-screen errorscause blue-screen errors
Windows can recover automatically from many Windows can recover automatically from many disk errors, especially on drives formatted with disk errors, especially on drives formatted with NTFSNTFS
Windows Check Disk utility, chkdsk.exe, does a Windows Check Disk utility, chkdsk.exe, does a more thorough testmore thorough test Two versions of this utilityTwo versions of this utility
• Graphical version that performs basic disk-checking Graphical version that performs basic disk-checking functionsfunctions
• Command-line version that provides more optionsCommand-line version that provides more options
![Page 16: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/16.jpg)
To Check for Errors To Check for Errors
Open ComputerOpen Computer Right-click the Right-click the
drivedrive PropertiesProperties Tools tabTools tab Check Now Check Now
![Page 17: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/17.jpg)
To Check for Errors To Check for Errors
Automatically Fix File System Automatically Fix File System ErrorsErrors Equivalent to Chkdsk /FEquivalent to Chkdsk /F
Scan For And Attempt Recovery Of Bad SectorsScan For And Attempt Recovery Of Bad Sectors Automatically repairs file system errors too, even Automatically repairs file system errors too, even
if other box is not checkedif other box is not checked Equivalent to Chkdsk /REquivalent to Chkdsk /R
If you simply want a report of file system errors If you simply want a report of file system errors without making changes, leave both boxes without making changes, leave both boxes uncheckedunchecked
![Page 18: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/18.jpg)
Checking System VolumesChecking System Volumes
If you selected the Automatically Fix File If you selected the Automatically Fix File System ErrorsSystem Errors On a drive with open filesOn a drive with open files
The disk check occurs the next time you start The disk check occurs the next time you start WindowsWindows
![Page 19: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/19.jpg)
It Can Take a Long TimeIt Can Take a Long Time
Once started, the Check Disk operation Once started, the Check Disk operation cannot be stopped except by pressing cannot be stopped except by pressing your computer’s power switchyour computer’s power switch
On very large drives (hundreds of GB and On very large drives (hundreds of GB and larger), the full disk check can takes hours larger), the full disk check can takes hours or even days to complete. or even days to complete.
![Page 20: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/20.jpg)
Automatic CheckingAutomatic Checking
Check Disk runs automatically after an Check Disk runs automatically after an abnormal shutdown if the file system is abnormal shutdown if the file system is "dirty"— data was not properly read or "dirty"— data was not properly read or writtenwritten NTFS disks don’t get dirty as much as FAT32 NTFS disks don’t get dirty as much as FAT32
onesones To see if your disk is dirty, use this commandTo see if your disk is dirty, use this command
• chkntfs chkntfs d:d:
![Page 21: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/21.jpg)
Command-line Check DiskCommand-line Check Disk
At an Administrator Command PromptAt an Administrator Command Prompt Chkdsk Chkdsk d:d: Scans disk Scans disk d:d: in read-only mode, displaying drive in read-only mode, displaying drive
status but not making any changesstatus but not making any changes
SwitchesSwitches /F fix any errors /F fix any errors /V verbose /V verbose /R Identifies bad sectors and recovers information /R Identifies bad sectors and recovers information
from those sectors if possible from those sectors if possible
![Page 22: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/22.jpg)
Chkdsk in the Windows Recovery Chkdsk in the Windows Recovery EnvironmentEnvironment
Only two switches are available for Only two switches are available for Chkdsk in the Windows Recovery Chkdsk in the Windows Recovery EnvironmentEnvironment /P Performs an exhaustive check of the /P Performs an exhaustive check of the
current disk. current disk. /R Repairs damage on the current disk. /R Repairs damage on the current disk.
![Page 23: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/23.jpg)
Defragmenting Disks
![Page 24: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/24.jpg)
Defragmenting Disks for Better Defragmenting Disks for Better Performance Performance
Files are stored in 4 KB Files are stored in 4 KB clustersclusters
It takes 50,000 clusters to It takes 50,000 clusters to store a 200 MB filestore a 200 MB file
On a freshly formatted On a freshly formatted hard disk, Windows writes hard disk, Windows writes a file in contiguous clusters a file in contiguous clusters (in order)(in order) Reading and writing go Reading and writing go
faster with contiguous faster with contiguous clustersclusters
![Page 25: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/25.jpg)
Defragmenting Disks for Better Defragmenting Disks for Better Performance Performance
As you delete files As you delete files and save new ones, and save new ones, the files get the files get fragmentedfragmented Scattered them over Scattered them over
the hard disk into the hard disk into many noncontiguous many noncontiguous piecespieces
Disk Defragmenter Disk Defragmenter rearranges files so rearranges files so that they’re stored in that they’re stored in contiguous clusterscontiguous clusters
![Page 26: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/26.jpg)
Automatic Defragmentaion Automatic Defragmentaion
On the Tools On the Tools tab in a drive's tab in a drive's Properties Properties sheetsheet
Click Click "Defragment "Defragment Now"Now"
Runs once a Runs once a week week automatically in automatically in Windows 7, Windows 7, with low prioritywith low priority
![Page 27: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/27.jpg)
Command-Line Version: DefragCommand-Line Version: Defrag
defrag defrag dd:: where where dd is the drive letter is the drive letter
![Page 28: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/28.jpg)
Disk Defragmenter LimitationsDisk Defragmenter Limitations
Must have at least 15 percent free for complete Must have at least 15 percent free for complete defragmentationdefragmentation
You cannot defragment a volume that has You cannot defragment a volume that has errorserrors First run First run
• chkdsk chkdsk dd: /f: /f
The Disk Defragmenter does not defragment The Disk Defragmenter does not defragment files in the Recycle Bin, and certain system files in the Recycle Bin, and certain system files, such as the page filefiles, such as the page file Empty the Recycle Bin before defragmentingEmpty the Recycle Bin before defragmenting
![Page 29: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/29.jpg)
Defragmenting Solid-State Media
Does not happen automatically Generally unnecessary, and may even
shorten devce life Manual defragmentation is possible,
however
![Page 30: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/30.jpg)
Managing Disk Space
![Page 31: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/31.jpg)
Managing Disk Space Managing Disk Space
Clear out temporary files that you no Clear out temporary files that you no longer need longer need
Uninstall programs you don’t need Uninstall programs you don’t need Uninstall Windows components you don’t Uninstall Windows components you don’t
need need Delete documents you don’t need Delete documents you don’t need On NTFS volumes, use real-time file On NTFS volumes, use real-time file
compression compression
![Page 32: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/32.jpg)
Disk Cleanup Disk Cleanup
If you click a "low disk If you click a "low disk space" warning, this tool space" warning, this tool opens automaticallyopens automatically
To start it manuallyTo start it manually Start, "Cleanup"Start, "Cleanup"
"Downloaded Program "Downloaded Program Files" includes ActiveX Files" includes ActiveX and Java add-ins, which and Java add-ins, which you may want to keepyou may want to keep
![Page 33: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/33.jpg)
Clean Up System Files
This button appears if you are running as a non-administrator with User Account Control turned on
![Page 34: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/34.jpg)
More Disk Cleanup OptionsMore Disk Cleanup Options
Deleting System Deleting System Restore points and Restore points and backups can save backups can save space, but it's space, but it's dangerousdangerous
You may also have You may also have a windows.old file a windows.old file you can deleteyou can delete
![Page 35: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/35.jpg)
Windows 7Windows 7Inside OutInside Out
Chapter 22 - Using Advanced System Chapter 22 - Using Advanced System Management ToolsManagement Tools
![Page 36: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/36.jpg)
EditionsEditions
Everything in this chapter is the same for Everything in this chapter is the same for all editionsall editions
![Page 37: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/37.jpg)
Viewing System Information
![Page 38: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/38.jpg)
System PropertiesSystem Properties
Start, right-Start, right-click My click My Computer, Computer, PropertiesProperties
Device Device ManagerManager
Windows Windows Experience Experience IndexIndex
![Page 39: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/39.jpg)
Systeminfo
Command-line utility
![Page 40: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/40.jpg)
Windows Management Instrumentation Command-Line
Utility (WMIC)
Used to get an overwhelming amount of information
Many command-line switches
![Page 41: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/41.jpg)
System Information (MSINFO32) Start, MSINFO32
![Page 42: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/42.jpg)
Microsoft Management Console (MMC)
![Page 43: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/43.jpg)
Microsoft Management Console
Start, MMC, Enter It’s an empty container at first Add Snap-ins to use it
![Page 44: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/44.jpg)
Snap-ins
Microsoft Common Console Documents
.msc files Demo
Start, gpedit.msc Open Task Manager On Applications tab,
right-click “Local Group Policy Editor”, and click “Go To Process”
The Process is mmc
![Page 45: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/45.jpg)
Snap-ins
Many familiar tools are snap-ins Computer Management
• Compmgmt.msc Device Manager
• Devmgmt.msc Event Viewer
• Eventvwr.msc Performance Monitor
• Perfmon.msc
![Page 46: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/46.jpg)
Demonstration: Custom Snap-in Add snap-ins Save the console in C:\
Windows\System32
It now appears in the Start button's Search menu
See project
![Page 47: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/47.jpg)
Task Scheduler
![Page 48: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/48.jpg)
New Features in Task Scheduler
Implemented as a Microsoft Management Console (MMC) snap-in More information about tasks
Integrated with the Event Viewer Events can trigger tasks
More extensive triggering and scheduling options Launch when computer is idle Launch when a specific user logs on
![Page 49: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/49.jpg)
Launching Task Scheduler
Start, search for "Task Scheduler"
![Page 50: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/50.jpg)
Active Tasks Minimize top two sections
![Page 51: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/51.jpg)
Task Details Browse to task in folder tree to see read-only details in
lower pane To modify them, right-click task name in the top pane
and click Properties
![Page 52: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/52.jpg)
Task Scheduler Terminology
Trigger The time or the event that causes a task to
run Action
What the task does Condition
An additional requirement that, along with the trigger, must be met for the task to run
Setting A property that affects the behavior of a task
![Page 53: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/53.jpg)
Scheduling Tasks with the Schtasks Command
Schtasks /Create Schtasks /Change Schtasks /Delete Schtasks /End Schtasks /Query Schtasks /Run
![Page 54: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/54.jpg)
Services
![Page 55: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/55.jpg)
Services
A service is a specialized program that performs a function to support other programs
Many services operate at a very low level Interacting directly with hardware Need to run even when no user is logged on Run with the System account (which has
elevated privileges)
![Page 56: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/56.jpg)
Using the Services Console
A MMC snap-in In Computer Management
Or SERVICES.MSC at a command prompt
![Page 57: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/57.jpg)
Actions on Services
Start, stop, pause, resume, or restart Pausing and resuming is less drastic than
stopping and restarting• May avoid cancelling jobs in process
Essential services start automatically Some others must be manually started or
stopped Usually because of an error
![Page 58: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/58.jpg)
Service General Properties
Startup Types Automatic (Delayed
Start)• Starts shortly after the
computer starts Automatic
• Starts when the computer starts
Manual• Doesn't start
automatically at startup, starts when needed
Disabled• Can't be started
![Page 59: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/59.jpg)
Service Log On Properties
The logon account must have the "Log On As A Service" right Local Security
Policy Security Settings Local Policies User Rights
Assignment
![Page 60: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/60.jpg)
Service Recovery Properties
When it fails Take No Action Restart The
Service Run A Program Restart The
Computer
![Page 61: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/61.jpg)
Dependencies
If you attempt to start a service that depends on other services, Windows first starts the others
If you stop a service upon which others are dependent, Windows also stops those services
![Page 62: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/62.jpg)
Determining the Name of a Service
Each service has three names
Service name• Used in command-line
and Registry Display name
• Appears in the Services console
Executable file name• Many are Svchost.exe
![Page 63: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/63.jpg)
Managing Services from Task Manager
Right-click a service to start or stop it
Right-click service "Go to process" to see its process "Show processes
from all users" to see them all
![Page 64: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/64.jpg)
Managing Services from a Command Prompt
![Page 65: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/65.jpg)
Editing the Registry
![Page 66: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/66.jpg)
Editing the Registry is Dangerous
A bad manual change can crash your system Normally you use Control Panel to update
the registry to avoid such disasters
![Page 67: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/67.jpg)
Understanding the Structure of the Registry
The registry consists of five root keys HKey_Classes_Root HKey_Current_User HKey_Local_Machine HKey_Users HKey_Current_Config
Or HKCR, HKCU,HKLM, HKU, and HKCC
![Page 68: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/68.jpg)
Subkeys
Root keys (sometimes called predefined keys), contain subkeys Subkeys look like folders in Regedit
HKCU has these top-level subkeys: AppEvents, Console, Control Panel, … A root key and
its subkeys form a path
HKCU\Console
![Page 69: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/69.jpg)
Values
Every Subkey contains at least one value But it may show (value not set)
The default value (often undefined) Values have name, data type, and data
![Page 70: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/70.jpg)
Hives
A key with all its subkeys and values is called a hive
The registry is stored on disk as several separate hive files
Hive files are read into memory when the operating system starts (or when a new user logs on)
![Page 71: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/71.jpg)
HiveList
HKLM\System\CurrentControlSet\Control\HiveList
![Page 72: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/72.jpg)
Hardware Hive
\Registry\Machine\Hardware has no associated disk file
Windows 7 creates it fresh each time you turn your system on
![Page 73: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/73.jpg)
HKCR and HKCU
These keys are links to items contained in other root keys HKey_Classes_Root (HKCR)
• Merged from keys within HKLM\Software\Classes and HKU\sid_Classes
sid is the security identifier of the currently logged on user
HKey_Current_User (HKCU)• HKU\sid
![Page 74: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/74.jpg)
Avoiding Registry Mishaps
Registry Editor changes the registry immediately
No Undo command No File, Save command
![Page 75: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/75.jpg)
Backing Up Before You Edit
Registry Editor's File, Export Registry Hive format is recommended for
backups• Because it restores the entire hive exactly• BUT if you restore it to the wrong key, it does a
lot of damage
![Page 76: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/76.jpg)
.reg Files You can export a registry key in
Registration Files format Creates a .reg file Can be edited in notepad Right-click, Merge to insert values into
registry
![Page 77: Windows 7 Inside Out Chapter 21 - Performing Routine Maintenance Last modified 11-16-10](https://reader034.vdocument.in/reader034/viewer/2022051401/56649ee15503460f94bf2513/html5/thumbnails/77.jpg)
HKLM\System\CurrentControlSet
This hive is so important, Windows backs it up
To restore this hive, press F8 during bootup and use "Last Known Good Configuration"