Day 5 Flashcards
windows boot process
pre-boot, boot, kernel initialization, user mode startup
pre-boot
the BIOS/UEFI loads from firmware and perform preboot sequences.
*UEFI replaces BIOS and allows Windows to install bootladers directly form firmware
boot
Windows 6* uses bootmgr as a 2nd stage boot loader.
begins execution in real-mode
once loaded, bootmgr switches to protected mode.
reads the boot configuration database (BCD)
BCD (boot cont)
used to identify the disk controller, disk, and partition location of the OS
boot cont.
after reading the BCD…
bootmgr starts winload.exe process
winload.exe (boot cont)
queries firmware to gather a list of installed hardware
Loads ntoskrnl.exe and hal.dll
scans drivers for start value of (oxo)
kernel initialization
begins once winload.exe has completed starting boot drivers.
executive managers create their initial objects, type objects and management mechanisms.
Ntdll.dll is mapped into the ntoskrnl.exe address space.
Creates hardware registry key.
Scans services registry for drivers with start value of 0x1).
Starts smss.exe (0) process
entire boot process
refer to page 71 and loose leaf page.
windows services
services do not depend on a user and are intended to provide OS features like DHCP, DNS, FTP, etc
ways in which windows services differ from ordinary applications
services run in the background and are not tied to an interactive user.
services do not have a user interface and do not interact with users.
services on 6* architectures run mostly in session 0
services may be configured to auto-start at boot
windows services consist of:
service applications, service control programs, SCM
service applications
the services themselves!
svchost.exe processes are generic hosts for DLL services.
service control programs (SCPs)
programs used to communicate desired service configuration changes to the SCM.
most common is services.msc
SCM
manages windows services.
starts, stops, and interacts with all system services.
(services.exe)
service properties
viewed through services.msc.
general tab:
services name:name as it appears in the registry
display name: services common name
path: file path to process
startup type: automatic, manual, or disabled
log on tab identifies the service account:
local system
local service
network service