How to Search for a Exchange Log file Text Pattern with Powershell recursive

by butsch 28. October 2013 15:19

This is equal to GREP or WINGREP but with Powershell. People would say use Search Function but this may be slow or incomplete.

XP/2003 Search worked but the 2008R2/W7 Search function does not seem to be much loved.

You may have to enable Messagetracking Logging first. Here is the easiest way:



Receive Connector / Empfangs Connectoren



Start the Blue Windows 2008R2 Powershell:

Change to the Exchange LOGS Path:

Cd "C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\MessageTracking"

Display on Screen:

Get-ChildItem -recurse | Get-Content | Select-String -pattern ""

Write into Logfile:

Get-ChildItem -recurse | Get-Content | Select-String -pattern "" > d:\edv\logs.txt


There will be an error because he has no permission to read INDEX files.


Comments are closed

Werbung von Drittfirmen (Nicht Butsch Informatik):

Werbung von Drittfirmen via Google Adsense: