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

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan HardistyCo-OwnerCommented:
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?
Alan HardistyCo-OwnerCommented:
Try typing the following in a DOS prompt:
nltest /sc_change_pwd:<netbiosdomainname> where netbiosdomainname is the name of your domain name.
k-mesonAuthor Commented:
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?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Alan HardistyCo-OwnerCommented:
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: 
k-mesonAuthor Commented:
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!

Alan HardistyCo-OwnerCommented:
k-mesonAuthor Commented:
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.
Alan HardistyCo-OwnerCommented:
What changed?
I thought we were talking SBS 2003 not SBS 2008?
k-mesonAuthor Commented:
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.
Alan HardistyCo-OwnerCommented:
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.
k-mesonAuthor Commented:
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!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alan HardistyCo-OwnerCommented:
Sorry we could not help, but glad you got it fixed in the end.
Sonds like a nasty problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.