Chapter 9. Services and processes


This chapter covers
  • Discovering services and their load order
  • Configuring services
  • Managing processes through their lifecycle
  • Working with process events


Operating system components and applications run as processes on Windows systems. Examples of operating system processes include the Local Security Authority Process (lsass.exe), Windows Explorer (explorer.exe), and the Desktop Window Manager (dwm.exe). Processes created by applications could include Word, Notepad, or PowerShell.

A service is a process that’s controlled by the Service Control Manager, such as DNS, Net Logon, Exchange, or SQL Server. Services usually start when the system boots up and runs in the background.



Run the scripts ...

Get PowerShell and WMI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.