
Chapter 2: Using Exchange Management Shell
63
To determine the current EventLevel of a given component, use Get-EventLogLevel followed by the
name of the component category, or the name of the specific component. For example, to display the
current diagnostic level for the
Autodiscover category, use the following command:
[PS] C:\ > Get-EventLogLevel “msexchange autodiscover”
Identity EventLevel
-------- ----------
msexchange autodiscover\Core Lowest
msexchange autodiscover\Web Lowest
msexchange autodiscover\Provider Lowest
Notice that the name of the category is encapsulated in quotes because it contains spaces. There are three
components under the Autodiscover category:
Core , Web , and Provider . To display the EventLevel of
an individual component, use the full identity (category name\component name) as input to
Get-EventLogLevel .
There are five levels of diagnostic logging set by
EventLevel : Lowest , Low , Medium , High , and Expert
. Lowest is the default level for all components after installation of Exchange Server 2007. To change the
EventLevel setting for a given component, use Set-EventLogLevel followed by the name of the
component plus the
Level parameter followed by the EventLevel setting.
For example, to set
EventLevel on component “msexchange autodiscover\Core” to High , use the
following command:
[PS] C:\ > Set-EventLogLevel “msexchange autodiscover\Core” ...