Solved

restore deleted user account

Posted on 2009-06-30
4
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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