managing services and registry chapter 16 powered by dj

32
Managing Services and Registry Chapter 16 powered by dj

Upload: dennis-montgomery

Post on 21-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Managing Services and Registry Chapter 16 powered by dj

Managing Services and

RegistryChapter 16

powered by dj

Page 2: Managing Services and Registry Chapter 16 powered by dj

Chapter Objectives

Use Services Console

Manage Services from Command Prompt and Task Manager

Explain the Structure of the Registry

Avoid Registry Mishaps

Edit Registry

Monitor Registry Changes

Restrict Access to Registry Editor

powered by dj

Page 3: Managing Services and Registry Chapter 16 powered by dj

Recall

The Startup Repair Tool takes back up and runs when Windows does not start due to corrupt system files

The Windows Memory Diagnostic Tool is used to test the memory of your computer

System Restore is a method that uses the computer’s previous configuration for recovering from system failure

A restore point is like a snapshot of the system at a particular time

powered by dj

Page 4: Managing Services and Registry Chapter 16 powered by dj

Using Services Console - I

A service is a program that performs a particular function which supports other programs in a computer

In Windows Vista, the services are provided in the Services console

Views ofServiceConsole

ExtendedView

StandardView

powered by dj

Page 5: Managing Services and Registry Chapter 16 powered by dj

Using Services Console - II

powered by dj

Page 6: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to view the Services console. (2 min)

powered by dj

Page 7: Managing Services and Registry Chapter 16 powered by dj

Starting and Stopping Services

The status of a service can be changed from the Services console

Generally, the services start automatically

The operating system stops the services, as it is a part of shutdown

All services do not allow you to change their status

Button Name

Start

Resume

Stop

Pause

Restart

powered by dj

Page 8: Managing Services and Registry Chapter 16 powered by dj

Question for group discussion – What is use of services? (2 min)

powered by dj

Page 9: Managing Services and Registry Chapter 16 powered by dj

Configuring Services

A service can be configured using the Service Properties dialog box

The Service Properties consist of four tabs:

General

Log On

Recovery

Dependencies

You can review or modify the service settings:

Setting Startup options

Specifying the Recovery options

powered by dj

Page 10: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to specify a recovery action for a service. (6 min)

powered by dj

Page 11: Managing Services and Registry Chapter 16 powered by dj

Determining the Name of a Service The Service Properties dialog box displays the three names of

the service such as Service name, Display name and Executable name

The service name is required while working with the registry entry of the service

The display name is required while working on the Services console

The executable name is needed when the users encounter a problem while running the service

powered by dj

Page 12: Managing Services and Registry Chapter 16 powered by dj

Question for group discussion – Name the services that are used frequently. (2 min)

powered by dj

Page 13: Managing Services and Registry Chapter 16 powered by dj

Managing Services from Command Prompt

Services can be managed from the command prompt using various Net commands

Net commands used for managing services are: Net Start

Net Start Service

Net Stop Service

Net Pause Service

Net Continue Service

powered by dj

Page 14: Managing Services and Registry Chapter 16 powered by dj

Managing Services from Task Manager The Services tab of

the Windows Task Manager is used for managing services

It displays information such as Name, PID (Process Identifier), Description, Status and Group of the services

powered by dj

Page 15: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to stop a service using the Net Stop [service] command. (5 min)

powered by dj

Page 16: Managing Services and Registry Chapter 16 powered by dj

Structure of the Registry - I Registry is a warehouse for information about the computer's

configuration

Registry can be edited using the Registry Editor

A root key with their subkeys can be described as a path

Example: HKLM\Systems\CurrentControlSet

A key with all its subkeys and value is called a hive

powered by dj

Page 17: Managing Services and Registry Chapter 16 powered by dj

Structure of the Registry - II The root keys provided by Registry Editor are:

HKEY_CLASSES_ROOT

HKEY_CURRENT_ USER

HKEY_LOCAL_MACHINE

HKEY_USERS

HKEY_CURRENT_CONFIG

powered by dj

Page 18: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to view the hive files. (5 min)

powered by dj

Page 19: Managing Services and Registry Chapter 16 powered by dj

Registry Data Types

Registry uses various data types:

REG_SZ

REG_BINARY

REG_DWORD

REG_QWORD

REG_MULTI_SZ

REG_EXPAND_SZ

powered by dj

Page 20: Managing Services and Registry Chapter 16 powered by dj

Introducing Registry Virtualization This process prevents the applications running under the

standard user account from writing to system folders in the file system and to machine-wide keys in the registry

The virtualization data is stored in the per user section of the registry

powered by dj

Page 21: Managing Services and Registry Chapter 16 powered by dj

Question for group discussion – Name the registry data types. (2 min)

powered by dj

Page 22: Managing Services and Registry Chapter 16 powered by dj

Avoiding Registry Mishaps Registry Editor copies all the changes into the registry and does not

have an undo command

The registry can be saved in one of the following four formats: Registration Files

Registry Hive Files

Win9x/NT4 Registration Files

Text Files

Allows to export and import the registry hive files

The System Protection utility is used to save the registry's state from time to time

powered by dj

Page 23: Managing Services and Registry Chapter 16 powered by dj

Group Activity: Ask the students to standup and sit down.

powered by dj

Page 24: Managing Services and Registry Chapter 16 powered by dj

Editing the Registry - I

The Find command can be used to find a particular key, value or data item

The data associated with a particular value can be changed using the Registry Editor

To add a new key, select the parent folder or key and click Edit New Key

To delete a key, select the key and press Delete

powered by dj

Page 25: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to export a registry hive. Demonstrate a procedure to restore the registry from an exported hive file. (15 min)

powered by dj

Page 26: Managing Services and Registry Chapter 16 powered by dj

Editing the Registry - II

To add a value, select the parent key and click Edit New Type of value

Following are the values with their data type:

Menu name Registry Data Type

String Value REG_SZ

Binary Value REG_BINARY

DWORD (32-Bit) Value REG_DWORD

QWORD (64-Bit) Value REG_QWORD

Multi-String Value REG_MULTI_SZ

Expandable String Value REG_EXPAND_SZpowered by dj

Page 27: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to add a key. (5 min)

Practical Activity: Demonstrate a procedure to add a key. (5 min)

Group Activity: Ask the students to their sitting arrangement.

powered by dj

Page 28: Managing Services and Registry Chapter 16 powered by dj

Restricting Access to Registry Editor Access to the Registry Editor for ‘all’ the users can be

prevented using the local group policy

Access to the Registry Editor for a single user can be prevented using Registry Editor

powered by dj

Page 29: Managing Services and Registry Chapter 16 powered by dj

Practical Activity: Demonstrate a procedure to lock all users to access the Registry Editor by setting a local group policy. (8 min)

Practical Activity: Demonstrate a procedure to lock a particular user to prevent access to the Registry Editor. Ask the students to re-enable the user to use the Registry Editor. (10 min)

powered by dj

Page 30: Managing Services and Registry Chapter 16 powered by dj

Summary - I Windows Vista provides the Services console. It can be opened

by typing Services.msc in the Instant Search box or in the command prompt

The Services console provides the following two types of views: Extended View and Standard View

The Services console enables you to start, pause and stop the services

Windows Vista allows you to control the services via command prompt. It uses Net commands for managing the services

powered by dj

Page 31: Managing Services and Registry Chapter 16 powered by dj

Summary - II

Windows Vista also allows you to manage the services from the task manager

The Registry Editor can be opened by typing regedit in the Instant search box and selecting the regedit link

The Registry Editor Window provides five root keys, namely, HKCR, HKCU, HKLM, HKU and HKCC

powered by dj

Page 32: Managing Services and Registry Chapter 16 powered by dj

Summary - III

Registry Editor copies all the changes made immediately and does not provide Undo option

Registry Editor can save all the portions of the registry in any of four different formats: Registration Files, Registry Hive Files, Win9x/NT4 Registration Files and text file

Windows Vista allows you to export and import the registry hive files

You can delete the created key from the registry editor

powered by dj