none
Get-MailboxDatabase writing error

    Frage

  • The Exchange MMC cannot access the AD configuration data. The following error is being logged to the application event log:

    Task Get-MailboxDatabase writing error when processing record of index 0. Error: Microsoft.Exchange.Data.Directory.SuitabilityDirectoryException: An Active Directory error 0x51 occurred when trying to check the suitability of server 'DCxx'. Error: 'Active directory response: The LDAP server is unavailable.' ---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.

    Is is correct that the mentioned DC is not available. The server has been demoted a few weeks ago, but it seems as if Exchange still tries to connect to the unavailable DC.

    The DNS does not have any informations about the missing DC. All service records reflect the new promoted DCs only.

    Where does Exchange get this information from?
    Donnerstag, 3. Dezember 2009 15:03

Antworten

  • We also get this error after demoting one our older dc's. we demoted an windows 2003dc an still have windows 2008 dc's (and gc). but when we modified the recipient scope in emc from "ou" to an explicit "gc" we can solve the error messages. hope it helps
    Sonntag, 13. Dezember 2009 08:05

Alle Antworten

  • Open Exchange Management Console -> Right Click Organization Configuration -> Click Modify Configuration Domain Controller -> Check Use Default Domain Controller...Problem should be fixed - if not - recycle ex services

    Rich Michael
    Samstag, 5. Dezember 2009 16:39
  • Sadfully selecting the default domain controller did not help to resolve the issue. Even after rebooting the server and opening the MMC the following error occurs:

    An error caused a change in the current set of domain controllers. It was running the command Get-OrganizationConfig.

    The event log stolls logs the error:

    (PID 4556, Thread 12) Task Get-ExchangeServer writing error when processing record of index 0. Error: Microsoft.Exchange.Data.Directory.SuitabilityDirectoryException: An Active Directory error 0x51 occurred when trying to check the suitability of server 'DCxx.fqdn.com'. Error: 'Active directory response: The LDAP server is unavailable.' ---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.

    After using "Collect Organizational Health Data" to refresh the Health Data I was able to change the DC settings from "Use default" to "Select Domain Controller". Borforehand the MMC wasn't able to connect to the domain.

    After rebooting the server again the new error message after starting the EMC is:

    An error caused a change in the current set of domain controllers. It was running the command 'Get-FederationTrust'.

    Thomas Stensitzki

    Montag, 7. Dezember 2009 10:56
  • Here is the complete error which is being logged after opening the EMC as and Administrator and trying to fetch the current list of mailboxes within the organization:

    Log Name:      Application
    Source:        MSExchange Configuration Cmdlet - Remote Management
    Date:          12/9/2009 9:24:31 AM
    Event ID:      4
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      MAIL01.FQDN.COM
    Description:
    (PID 5984, Thread 10) Task Get-ExchangeServer writing error when processing record of index 0. Error: Microsoft.Exchange.Data.Directory.SuitabilityDirectoryException: An Active Directory error 0x51 occurred when trying to check the suitability of server 'OLDDC.FQDN.COM'. Error: 'Active directory response: The LDAP server is unavailable.' ---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.
       at System.DirectoryServices.Protocols.LdapConnection.Connect()
       at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)
       at Microsoft.Exchange.Data.Directory.SuitabilityVerifier.CreateConnectionAndBind(String fqdn, Int32 portNumber, NetworkCredential credential)
       --- End of inner exception stack trace ---
       at Microsoft.Exchange.Data.Directory.SuitabilityVerifier.CreateConnectionAndBind(String fqdn, Int32 portNumber, NetworkCredential credential)
       at Microsoft.Exchange.Data.Directory.SuitabilityVerifier.IsServerSuitable(String fqdn, Boolean isGlobalCatalog, NetworkCredential credential, String& writableNC, LocalizedString& errorMessage)
       at Microsoft.Exchange.Data.Directory.ConnectionPoolManager.GetConnection(ConnectionType connectionType, ADObjectId domain, String serverName, Int32 port, NetworkCredential credential)
       at Microsoft.Exchange.Data.Directory.ConnectionPoolManager.GetConnection(ConnectionType connectionType, NetworkCredential networkCredential, String serverName, Int32 port)
       at Microsoft.Exchange.Data.Directory.ADSession.GetConnection(String preferredServer, Boolean isWriteOperation, Boolean isNotifyOperation, String optionalBaseDN, ADObjectId& rootId, ADScope scope)
       at Microsoft.Exchange.Data.Directory.ADSession.GetReadConnection(String preferredServer, ADObjectId& rootId, ADRawEntry scopeDeteriminingObject)
       at Microsoft.Exchange.Data.Directory.ADGenericReader.GetNextResultCollection(Type controlType, DirectoryControl& responseControl)
       at Microsoft.Exchange.Data.Directory.ADPagedReader`1.GetNextResultCollection()
       at Microsoft.Exchange.Data.Directory.ADGenericPagedReader`1.GetNextPage()
       at Microsoft.Exchange.Data.Directory.ADGenericPagedReader`1.<GetEnumerator>d__4.MoveNext()
       at Microsoft.Exchange.Configuration.Tasks.GetTaskBase`1.WriteResult[T](IEnumerable`1 dataObjects)
       at Microsoft.Exchange.Configuration.Tasks.GetTaskBase`1.InternalProcessRecord()

    Any ideas?
    Mittwoch, 9. Dezember 2009 08:32
  • So, even when you manually specify a Domain Controller/GC still not working? Please select a DC that is GC.

    Are you able to open EMS? Are you getting the same error?

    Is the user you are using a member of "Organization Management" role group? you can check it by run "Get-RoleGroupMember "Oganization Management""

    Did you run ExBAP? Any error or warning?
    Mittwoch, 9. Dezember 2009 09:12
  • I can specify a Domain Controller (which is a GC) only after collecting Organizational Health Data. Collecting and saving the Org Health Data runs successfully.

    The user is a member of the "Organzational Management" group.

    Opening the EMC does not throw an error at all. The error occurs after opening a node like "Recipient Configurations" - "

    I've noticed that the registry entry for the local AD schema cache file "%LOCALAPPDATA%\Microsoft\Windows\SchCache\OLDDC.FQDN.COM.sch" reflects the old DC name. The schema master has been changed a few weeks ago. How are those changes reflected on the Exchange server?

    The MSExchange ADAccess service finds all DCs with out any error. Only current DC names are being listed in the details fo the event log entry.

    ExBPA show onyl one error:
    Active Directory domain has an unrecognized Exchange signature. Current DomainPrep version: 12639

    Mittwoch, 9. Dezember 2009 10:14
  • I am having this error too, also after demoting a DC in my domain...tried all of the above, no dice.  Exchange really thinks that my old server is still a DC and tries to talk to it.

    Also I am having a problem where users are reporting outlook continually asks for a password trying to update the global address list, possibly related?  I would love to get rid of these problems.  Right now I have one Exchange server and two DCs.
    Mittwoch, 9. Dezember 2009 22:29
  • We are getting the same errors after demoting DC.  Any additional ideas?

    Donnerstag, 10. Dezember 2009 19:45
  • Does anyone know how to search the AD attributes to find the demoted DC?
    Freitag, 11. Dezember 2009 08:18
  • We also get this error after demoting one our older dc's. we demoted an windows 2003dc an still have windows 2008 dc's (and gc). but when we modified the recipient scope in emc from "ou" to an explicit "gc" we can solve the error messages. hope it helps
    Sonntag, 13. Dezember 2009 08:05
  • Thank you, choosing an explicit GC also solved the problem in my case (at least it seems so for the moment). After that I changed the setting back to "OU" again and it still worked.

    In other words, my config now looks like this:

    Organization Configuration / Modify Configuration Controller / Specify a domain controller -> my domain and a GC
    Server Configuration (same as Organization Configuration)
    Recipient Configuration / Modify Recipient Scope / View all Recipients in specified OU -> my domain and a GC

    However, as Armin wrote, I also had to first change the recipient scope from OU to GC to fix the problem.

    Changing the Organization and Server Configuration back to default will bring up the errors again tough, so I really have to leave the GCs specified.

    I also had to change the reg setting as Apoc wrote because there still was the demoted DC in there.

    Montag, 14. Dezember 2009 08:16
  • Thank you.

    After changing the recipient scope in the EMC to an explict GC all error messages disappeared. The EMC now starts without any errors at all.

    Montag, 14. Dezember 2009 11:30
  • hello,

    i have same problem. After demoting previously default domain controller, EMC keeps throwing these errors. I can make them disappear by setting explicit DC to use / scope to DC, but I wonder why doesn't it work using default values? How do I fix that?
    Mittwoch, 27. Januar 2010 09:04
  • anyone with any ideas?
    • Als Antwort vorgeschlagen Adam Miceli Mittwoch, 10. Februar 2010 04:58
    Sonntag, 31. Januar 2010 19:56
  • Delete this file: c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console
    • Als Antwort vorgeschlagen algkep Mittwoch, 10. Februar 2010 09:29
    Mittwoch, 10. Februar 2010 04:59
  • Bingo! You were absolutely right! There were some issues with local DCs, the errors kept appearing even after I fixed the issues, and deleting this file solved them!

    Thanks!
    Mittwoch, 10. Februar 2010 09:29
  • Adam, Thank YOU!
    You were absolutely right!
    After removal "%LOCALAPPDATA%\Microsoft\Windows\SchCache\OLDDC.FQDN.COM.sch" and use regedit [HKEY_CURRENT_USER\Software\Microsoft\ADs\Providers\LDAP\....] the situation all the same has not changed.
    deleting this c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console file solved them!


    Thanks!
    Freitag, 12. Februar 2010 00:33
  • Steps summarized just above by apbabkin fixed this for me
    Dienstag, 20. April 2010 18:14
  • Thanks a ton Adam..

    i had same issue.. and deleting the file c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console solved it.

    Sonntag, 16. Mai 2010 14:44
  • Worked for me too


    library1
    Donnerstag, 20. Mai 2010 21:52
  • Perfect solution Adam. Thanks for the tip.
    Jeff
    Dienstag, 15. Juni 2010 14:49
  • Delete this file: c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console


    This was the solution for me as well.  Recommend this one be the highlighted fix for this thread.

     

    Blogged:

    http://blog.chrislehr.com/2010/06/odd-domain-controller-errors-in.html

    Mittwoch, 23. Juni 2010 18:07
  • I deleted the Exchange Managment Console file and also modified the Recipient Scope and selected a GC which removed my errors.
    Montag, 2. August 2010 18:56
  • Thank you, I was very tired of this issue!
    Mittwoch, 4. August 2010 00:19
  • Not to sound to silly but which server am I deleting the EMC from? My exchange server or the DC(s)?
    Mittwoch, 11. August 2010 14:50
  • Adam Miceli's solution worked for me as well!

    Mittwoch, 1. September 2010 20:23
  • Adam Miceli's solution worked for me :D

    Deleting the  "c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console" file works.

    Freitag, 10. September 2010 11:03
  • Delete this file: c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console
    Thanks did the trick..
    Donnerstag, 5. Mai 2011 11:01
  • Just wanted to add, Adam's trick of Delete this file: c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console

     

    worked for me.

    Montag, 6. Juni 2011 06:38
  • Thanks! That fixed the problem for me too.
    Donnerstag, 15. März 2012 19:37
  • that's great!
    Freitag, 24. August 2012 06:16