16.3. Summary

Windows provides nice utilities that allow us to consume event log entries and performance counter data in a friendly way using a convenient graphical user interface. Sometimes, though, we need to get hold of that data from within a script that tries to accomplish a task depending on an external program. Fortunately, PowerShell and .NET allow us to get that data relatively easily and then move on to concentrate on the task we should really be doing.

In this chapter, I demonstrated how to get entries from the system event logs and how to write your own entries inside. I then outlined several techniques for monitoring applications using Windows performance counters. Using both the event logs and performance counters, we can turn ...

Get Pro Windows PowerShell 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.