Solved

restore deleted user account

Posted on 2009-06-30
4
390 Views
Last Modified: 2012-10-24
I am running windows server 2003.  I had an account "matt" that was a local user.  I then installed active directory to make the machine a domain controller.  I then decided to remove the roll of domain controller from the machine.  Once it restarted, the local account "matt" is deleted.  The contents of the profile is still there, but can't login.  How do I restore the user account?
0
Comment
Question by:mattjp88
  • 2
  • 2
4 Comments
 
LVL 74

Accepted Solution

by:
Glen Knight earned 500 total points
Comment Utility
I believe when you DCPromo a server the local SAM account is removed and recreated with only the ADDRM Administrator account in it.

Therefore if you were to DCPromo down the server the only account that would be available would be an Administrator account.

The profile ( I am assuming you are talking about the one in C:\Documents and  Settings) would not have been removed as part of the DCPromo.

You will need to re-create this account if you require it as a local user after the DCPromo
0
 
LVL 6

Author Comment

by:mattjp88
Comment Utility
I recreated the user "matt", but it made a new user profile at c:/docs and settings/matt.machine/ .  Will renaming the old profile directory to the new one cause problems?
0
 
LVL 74

Expert Comment

by:Glen Knight
Comment Utility
Yes because it contains the user part of the registry, if it's just the desktop/shortcuts/favourites etc your after then you can copy them from the old profile to the new one.  Just make sure you don't copy NTUSER.dat as this will cause you a few issues.

Also try to avoid the application settings as this section may also have mappings to the old profile.
0
 
LVL 6

Author Comment

by:mattjp88
Comment Utility
I ended up finding a solution somewhere that involved changing the path of a user's home directory in the registry.  It worked out well because the old user account was "mattuser", the new one was also "mattuser".  So when I changed the home directory of the new "mattuser" from "mattuser.machine" to just "mattuser", everything worked nicely.  I would assume that if the usernames had been different, terrible things would have happened.

Thanks for your help.

-Matt
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now