Link to home
Start Free TrialLog in
Avatar of BHTN
BHTNFlag for United States of America

asked on

WINDOWS 7 PC LOCAL ADMIN DISABLED, DOMAIN COMPUTER ACCOUNT DELETED

Hello EE,

Here's the situation:

I have one Windows 7 Professional PC that has the local Administrator account disabled.

Initially, I added a new Windows XP client to the domain and inadvertently assigned the same computer name to the XP client that the Windows 7 client already had (OFFICE-PC2).

Active Directory accepted my request to add the new XP client and allowed the computer account of OFFICE-PC2 to be assigned to the XP client.

Once I logged into the XP client using my domain credentials, I was notified that there was a duplicate name on the domain.  

In my haste, I deleted OFFICE-PC2's computer account from Active Directory and reassigned a new name for the XP client of OFFICE-PC3.

The original Windows 7 PC that had the original computer account name of OFFICE-PC2 is now orphaned.  It was not removed from the domain properly and will no longer allow me to log into the client.  

The local Administrator account is disabled.

I manually created a new computer account in Active Directory called OFFICE-PC2.  

Is there any way to reestablish the link between the orphaned Windows 7 PC (OFFICE-PC2) and Active Directory?

I've booted from my rescue CD and went into the CMD window and tried to enable the admin account by typing the following:

net user administrator /active:yes

It indicated that the command completed successfully.  Now when I try to log in I receive the following error (using a domain account):

The trust relationship between this workstation and the primary domain failed.

Any suggestions would be appreciated.

Avatar of bill_lynch
bill_lynch
Flag of United States of America image

if the administrator command issued successfully then you should be able to log in with the local administrator account and then re-add the computer to Active Directory
Avatar of Sajid Shaik M
delete computer name and domain account... delete dns record....clear dns cache....create same account again...log in to the pc with local sdministrator... join to domain as Bill_Linch says..

he is right ... go ahead .. .all the best
Avatar of BHTN

ASKER

Yes, I agree that it should allow that, but, when I try to log in 'after' running the net user administrator /active:yes command, the PC acts as though it never enabled the account.  It says "your account has been disabled.  Please see your administrator".

Thanks Bill
As Bill implied, you should be able to add it back to the domain.  Once you have logged in with the built-in default Administrator account you may need to temporarily switch the operating system to a workgroup, reboot, login with your Administrator account again and then add it back to the domain.
ASKER CERTIFIED SOLUTION
Avatar of Run5k
Run5k
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BHTN

ASKER

Ok, based on shaiksaj's recommendations, I deleted the computer account, DNS and cleared the cache.  I then tried to use the rescue CD again and run the net user administrator /active:yes which it verified as being completed successfully.

I rebooted and tried to log in to the local admin account only to be told it was disabled.

I will now download Run5K's recommendation and see how that goes.  

Thanks everyone...I'll be back shortly.
Avatar of BHTN

ASKER

Thank you Run5K!!!!  Worked like a charm!  I had an old version of Knoppix for this very purpose but it didn't work in Windows 7.  

Thank you everyone for helping.  Big time assist there!!!

Have a great evening!
Avatar of BHTN

ASKER

Excellent example of EE in action!
Glad to help!
the main thing is the issue was solvedall the best.....