Exchange 2010 MessageTrackingLog: Error Access Denied
Message Tracking in Exchange 2010 Stopped and you received the following Error in EventViewer.
“MessageTrackingLogs: Failed to write logs because of the error: Access to the path ‘MSGTRK20170329-8.LOG’ is denied..”
Let’s Start by reviewing the Current configuration for Message Tracking.
1 2 |
Get-TranSportServer |ft Name,MessageTrackingLogEnabled,MessageTrackingLogPath,MessageTrackingLogMaxAge,MessageTrackingLogMaxDirectorySize,<pre> MessageTrackingLogMaxFileSize,MessageTrackingLogSubjectLoggingEnabled |
Now that you have your current configuration lets run a #OneLiner so , which will recreate the MessageTrackingLogs Settings and lets Exchange specify and set the permissions on the path specified.
1 2 3 |
Get-TransportServer AEDUBEXCAS01 | Set-TransportServer -MessageTrackingLogEnabled $True -MessageTrackingLogPath<pre> “E:\Logs\MessageTracking” -MessageTrackingLogMaxAge “180.00:00:00” -MessageTrackingLogMaxDirectorySize 2GB<pre> -MessageTrackingLogMaxFileSize 20MB -MessageTrackingLogSubjectLoggingEnabled $True |
Screen after script completed successfully.
Lest look at the directory and see if the logs are being written to file now.
That is some good news we have a current date stamp , let’s have a look at the actual Logs as well.
And that is some more good news as a new log has been generated in the specified location.
Lastly lets verify in Exchange Message Tracking GUI if we can see any Messages now.
And there you go Message Tracking working again.
Be First to Comment