Event ID: 9040 may occur every 15 minutes on a computer that is running Exchange Server 2007


On a computer that is running Microsoft Exchange Server 2007, you may find that the following event error is logged in the Application event log almost every 15 minutes.


This problem occurs because the ExchangeLegacyDN attribute of the server object does not match the ExchangeLegacyDN attribute for the user.


To work around this problem, run the following Exchange cmdlets.
Get-ExchangeServer -ID  Servername |FL name, ExchangeLegacyDN
Get-Mailbox | FL Displayname, ServerLegacyDN
Examine the ServerLegacyDN attribute on the mailbox to determine whether it matches the ExchangeLegacyDN attribute on the server object. The cmdlets output will help determine the mailboxes that are mismatched. Correct the mismatched users, and then stop and restart the mailbox assistant service.

Note If there are more than 1000 mailboxes on the server, run the "Get-Mailbox -ResultSize Unlimited | FL Displayname, ServerLegacyDN" cmdlet instead of the "Get-Mailbox | FL Displayname, ServerLegacyDN" cmdlet.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

To correct the attribute for a user, back up the attribute, and then use a tool to correct the attribute. To back up the attribute, use the ADSIEdit tool or another tool.

Article ID: 948934 - Last Review: Jan 7, 2009 - Revision: 1