Exchange Server Share

… Information sharing on Exchange Server …

Exchange Powershell Tip #07

leave a comment »

Exchange Powershell Tip #07

How to set Event Logging Level (Diagnostic Logging) on all or filtered Exchange servers in bulk?

While troubleshooting Exchange issue you might need to set Diagnostic Logging level by increasing information level of the Event Logs. For example, if you want to set the diagnostic logging for “MSExchangeActiveSync\Requests” to High on all (or filtered) Exchange servers in your environment, then you can use below cmdlet…

$Test = Get-ExchangeServer
$Test | ForEach{Set-EventLoglLvel “$_\MSExchange ActiveSync\Requests” -Level High}

Verity that it is set on all the severs using this…

$Test = Get-ExchangeServer
$Test | ForEach{Get-EventLoglLvel “$_\MSExchange ActiveSync\Requests”}

Here is the sample output:

ExShellTip7-EventLogLevel

You can filter the list of servers with Get-ExchangeServer cmdlet, like Get-ExchangeServer ABC* will set just servers starting with name “ABC”. You can use more complex filtering based on your need…

Here is the reference of available Event Log Levels:

0 – Lowest
1 – Low
3 – Medium
5 – High
7 – Expert

==> Get All Exchange Powershell Tips from the Archive Here<==

Written by Amit Tank

May 28, 2016 at 5:00 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: