O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

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

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

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