Chapter 4. Managing Services

After completing this chapter, you will be able to:

  • Document the existing service configuration.

  • Write to text files.

  • Write to a centralized database.

  • Produce a listing of required services.

  • Produce a set of desired configurations.

  • Generate a compliance report.

Note

On the Companion Disc All the scripts used in this chapter are located on the CD that accompanies this book in the \scripts\chapter04 folder.

Documenting the Existing Services

From both a performance perspective as well as a security perspective, it is important to know which services are running on a server or workstation. There are two cmdlets you can use to gather this information. The first is the Get-Service cmdlet and the second is the Get-WmiObject cmdlet. ...

Get Windows PowerShell™ Scripting Guide 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.