Prev | Current Page 106 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"


Exchange Management Shell provides cmdlets for viewing event logs and setting diagnostic logging
levels for Exchange components.
Viewing Event Logs
Windows PowerShell uses the Get-EventLog cmdlet to provide access to event logs on the local server.
Several parameters are included to control how Get-EventLog works.
Chapter 2: Using Exchange Management Shell
61
To display a list of all event logs that are available on the server along with their current properties, use
the List parameter as shown in this example:
[PS] C:\ > Get-EventLog -list
Max(K) Retain OverflowAction Entries Name
------ ------ -------------- ------- ----
16,384 0 OverwriteAsNeeded 2,512 Application
512 0 OverwriteAsNeeded 139 Directory Service
512 7 OverwriteOlder 60 DNS Server
512 0 OverwriteAsNeeded 14 File Replication Service
512 7 OverwriteOlder 0 Internet Explorer
131,072 0 OverwriteAsNeeded 65,785 Security
16,384 0 OverwriteAsNeeded 1,066 System
15,360 0 OverwriteAsNeeded 496 Windows PowerShell
This list is typical for a server acting as an ??? all - in - one ??? box running Windows 2003 Active Directory,
DNS, and Exchange Server 2007.
To display the events from a particular event log, use the LogName parameter and the name of the
specific event log as shown in the list from the previous example.


Pages:
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
Paula Abdul nieruchomoƛci szczecin yerba mate meble do sypialni 2 1