Chapter 3. Managing Logs

After completing this chapter, you will be able to:

  • Read the event log.

  • Peruse general log files.

  • Manage and search the event log.

  • Examine the WMI event logs.

  • Write to event logs.

  • Create custom event logs.

Note

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

The Windows world contains numerous log files. In the past, you were mostly limited to the "big three" event logs: Application, System, and Security. This has significantly changed with the introduction of Windows Vista and Windows Server 2008. With the new log style, we now have many new logs, containing a wealth of information. For some network administrators, reviewing the event ...

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.