Solved

restore deleted user account

Posted on 2009-06-30
4
394 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
ID: 24750084
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
ID: 24750180
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
ID: 24750201
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
ID: 24941010
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

815 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