Getting MSExchangeSA Event ID 1005 Login failure error and services will not start.

Posted on 2009-06-29
Last Modified: 2012-05-07
I have a problem which I think stems from some AD corruption that I have had on SBS 2003.

I have got the server booting up after running ntdsutil offline compression etc. but now Exchange services will not start and I am getting the following error messages:

MSExchangeSA Event: 1005 Category: General
Unexpected error Logon failure: unknown user name or bad password. Facility: Win32 ID no: 8007052e Microsoft Exchange System Attendant  occurred.

MSExchangeDSAccess Event: 2114 Category: Topology
Process INETINFO.EXE (PID=5104). Topology Discovery failed, error 0x80040931.

I have already re-run forestprep and domainprep for exchange in case there were missing components in the AD after a cleanup but this has not helped. Also re-applied Exchange SP2.

This is SBS Single server environment so do not have facility to rebuild AD from another server.

I think the problem is mainly to do with the local service account not being recognized by AD and am also getting

USERENV Event: 1053
Windows cannot determine the user or computer name. (Access is denied. ). Group Policy processing aborted.

Any suggestion greatly appreciated.
Question by:k-meson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
LVL 76

Expert Comment

by:Alan Hardisty
ID: 24738084
Click on Start, Run, (type) services.msc (press enter)
Look down the list of services for Exchange system Attendant.  In the right-hand column, what is the Log On As name shown?  Is it Local System or something else?
LVL 76

Expert Comment

by:Alan Hardisty
ID: 24738101
Try typing the following in a DOS prompt:
nltest /sc_change_pwd:<netbiosdomainname> where netbiosdomainname is the name of your domain name.

Author Comment

ID: 24738246
Exchange System Attendant is running as local service.

nltest does not run, not recognised as a command.

Have just spotted that I have a number of items listed as ForeignSecurityPrinciples such as NT AUTHORITY\SYSTEM in the AD Tree. Should these be in a proper container? If so how do I re-create?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 76

Expert Comment

by:Alan Hardisty
ID: 24738353
The ForeignSecurityPrinciples folder is empty by default.
I have never come across this before and googling does not bring up anything useful.
Having had a corrupted AD - do you have a System State backup you can use to restore AD from?
Have a read of the following EE Question: 

Author Comment

ID: 24738473
Unfortunateley I have no system state back-ups which is why I had to run a fix on the AD in the first place. I have a copy of the corrupt AD file before fixing which I may try to re-instate to see what happens.

It is all a bit frustrating!

LVL 76

Expert Comment

by:Alan Hardisty
ID: 24738563

Author Comment

ID: 24739037
Server will now not boot up at all....

Looks like I may need to set up my new SBS 2008 and start again.

Any other ideas appreciated - will get back to this tomorrow.
LVL 76

Expert Comment

by:Alan Hardisty
ID: 24739061
What changed?
I thought we were talking SBS 2003 not SBS 2008?

Author Comment

ID: 24740597
Yes currently running 2003.

Tried to swap ntds.dit with previous version before defrag etc. but now server reports security error and will not start. Changed files back and got same result.

I do have a copy of SBS2008 that I was due to implement when hardware became available but wanted to migrate. Fortunateley I have all data backed up so can start from fresh but need new tin to do it with.

Would really like to get this one running again if I can though as didn't really expect to need to purchase at this stage.
LVL 76

Expert Comment

by:Alan Hardisty
ID: 24740643
You cannot just copy and paste the NTDS.DIT file and hope it works.  You would have to reboot into Directory Service Restore Mode and restore that way.
Have a read of the following:
If you don't have a proper system state backup, you may well end up spending more time trying to finx than trying to rebuild.
Your best course of action may be to call Microsoft and pay them the small fee to troubleshoot the problem for you.  They should be able to tell you fairly quickly if it can be achieved and save you some time, unless you have plenty to spare.

Accepted Solution

k-meson earned 0 total points
ID: 24754841
Had to get Microsoft involved - turned out to be local security issue stopping DNS accessing AD records and thus causing Exchange to get the DC Access error.
Steps taken by MS Engineer
1.       We tried to start the exchange services, but failed with error message.
2.       Checked the DNSSERVER and didnt find any zones are loaded.
3.       Reset the secure channel using  Netdom resetpwd /server:DOMAINLOCALIP /userd:DOMAINNAME\Administrator /password:*
4.       Rebooted the Server and were able to start Exchange services fine.
5.       Also noticed that we couldnt logon to the domain on client machines. We disjoined and rejoined the machines to the domain.
6.       We were able to successfully logon to the domain.

Thanks to MS Break Fix Support which I get FOC with my action Pack and to alanhardisty for suggesting I call them!

LVL 76

Expert Comment

by:Alan Hardisty
ID: 24754886
Sorry we could not help, but glad you got it fixed in the end.
Sonds like a nasty problem.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A hard and fast method for reducing Active Directory Administrators members.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question