?
Solved

restore deleted user account

Posted on 2009-06-30
4
Medium Priority
?
399 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Suggested Courses

801 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