Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was in a process for preparing AD structure for SharePoint 2010 development. I installed Windows 2008 R2, downloaded all updates and run "dcpromo" after creating domain, I created few user accounts and then I created few more Managed Service Accounts via remote desktop as administrator and then I decided to logon as different user.

When I reconnected again, I got: "the security database on the server does not have a computer account for this workstation trust relationship". Same on administrator account or any other user (in domain admins group). I was trying to connect to remote desktop from my personal machine which is not part of the domain.

Unfortunately I'm getting the same error when I'm trying to logon on domain controller physically (locally) on administrator account or any other domain admin account. Also I can't logon locally at all (<computer_name>\administrator and others).

Also, if it might be any help - before I tried to switch users, I added "Domain Users" to be able to connect to remote desktop and also changed SPN for one of the users, but that was not the user I tried to logon to.

Any ideas why this might happened? I'd be very pleased if this issue could be resolved without need for setting up system again.

Edit:

When I boot into DSRM, I can't connect with LDP.exe or any other tool. Active directory services are stopped, and when I try to enable them, message informs me that service started and stopped immediately.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

It sounds very much to me like the computer account for the DC has been accidentally deleted. Do you think this is possible? If this is the only DC and you've not made many changes since this happened, you could boot into DSRM and log in using the restore password and try to restore the tombstoned objects, if there are any.

share|improve this answer
    
I don't think this is possible that account was deleted, but I'll check that. –  jjczopek Apr 10 '12 at 12:34
    
When I boot into DSRM, I can't connect with LDP.exe or any other tool. Active directory services are stopped, and when I try to enable them, message informs me that service started and stopped immediately. –  jjczopek Apr 10 '12 at 13:14
    
That's normal. In DSRM, the directory services are offline (if they were online it might cause problems with other domain controllers while you were making changes). You need to query the directory and make changes (if necessary) using ntdsutil. Also perhaps look at adrestore from sysinternals. Not sure if it can work on offline AD databases though. –  Chris McKeown Apr 10 '12 at 15:17
    
I managed the problem by running DC in safe mode and used LDP from there. Everything started working when I removed SPN from one service account, which occurred to be wrong. –  jjczopek Apr 10 '12 at 15:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.