O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required