Working with event logs

Detailed messages about informational events, warnings, and errors are logged in both the Windows event logs, and the Applications and Services event logs. These messages provide deep insight into what is going on with the operating system and your Exchange servers. In this recipe, you'll learn how PowerShell makes it easier than ever to monitor these logs using simple commands that can be used to troubleshoot issues and generate reports.

How to do it...

  1. To determine the available Windows logs that you can work with on a server, use the Get-EventLog cmdlet with the -List parameter:
    How to do it...
  2. The names listed under the Log column are the ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition 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.