how to recreate deleted registry key: XP Home Recovery Console

Posted on 2006-05-11
Last Modified: 2008-01-09
Unfortunately, I deleted the following Registry Key in XP Home:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Now when I log in, it starts 'loading personal settings" and then quickly logs me back off

I have access to the recovery console.

Can the key and value be recreated?

Any other ideas will be appreciated.
Question by:grampositive
    LVL 13

    Expert Comment

    Did you power off, then power on, press F8 repeatedly until you get choices.  Choose Last Known Good Configuration.;en-us;315222


    Author Comment

    Last known and save mode exhibit the same symptoms

    everything appears wll, I see the wallpaper and then real quickly it starts logging off and retruns to the user welcome screen

    Author Comment

    I found a Pre-Installation Boot Disk that allows me to access the registry, adding the userinit key and value, did NOT Resolve the log in issue

    Just to be clear:

    I start the XP SP2 Home PC and make it to the Login Screen as expected.

    It reports that it is "Loading my personal Settings", then quickly disconnects and Logs me off and takes me back to the login screen.
    LVL 69

    Expert Comment

    can you boot to safemode?
    Tap f8 choose safemode log onto the administrative account, press enter at this to avoid inserting any passwords.
    Once this desktop has loaded, run the regestry editior and re-create this reg file you deleted.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

    Have you checked the recycle bin to see if it is in there then restore it.

    userinit.exe (User Initialization) - Details
    The userinit.exe process is executed by windows when you log on to your computer. It will run various network and user-setup related tasks to initialise your session on the computer/network. You should leave this process running to ensure that you are logged on correctly.

    userinit.exe is flagged as a system process and does not appear to be a security risk. However, removing User Initialization may adversly impact your system.
    The Spy Bot database currently registers userinit.exe to Microsoft.
    This is part of Microsoft Windows.

    If you have S&D spybot maybe you can use the last scanned log to restore the saved reg files. Or adaware.
    Lets try some quick tweaks.
    The Welcome Screen Appears then Logs off

    Go to Start/Run/Regedit and navigate to this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.

    In the right pane under Userinit, Change the key to read:

    Or download and run the reg file on line 263 (right hand side), if Windows is installed on C:\Winnt.  If not, modify the edit manually.

    Place your XP CD in and navigate to the Recovery Console.
    Change the C:\Windows prompt to: C:\Windows\System32 and copy userinit.exe to wsaupdater.exe

    Reboot into Safe Mode and modify:

    change userinit in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\Winlogon from wsaupdater.exe, to userinit.exe,

    Good Luck
    LVL 13

    Accepted Solution

    Are you familiar with The Ultimate Boot CD for Windows?

    It allows you to create an offline boot cd, which you can then use and run the Registry EditorPE and repair your XP registry problem offline.

    Very handy boot cd, but you need a running xp system to create it, along with your original XP startup cd (which sounds like you have)
    LVL 13

    Expert Comment

    grampositive, I just saw your previous post about already having bartPE cd, and attempting (unsuccessfully) to fix it by adding the registry key.  So ignore my post about ubcd4win

    Author Comment

    Regarding Merete's suggestions:

    I was able to edit the key with an UltimateBootCD, but the problem persists.

    Begins log in, splashes wallpaper for microsecond, then logs off back to welcome screen.

    Author Comment

    The UltimateBootCd even had a registry restore feature.

    Viola, I am logged in again!

    Your post encouraged me to browse the CD thoroughly and therein I found the appropriate tool, which answered my initial question and solve my problem.

    Thanks for everyone's quick post.
    LVL 13

    Expert Comment

    Great.  That offline registry editor can be a real life saver (as you found out) to make XP registry modifications when you can't boot.

    Nice to have a happy ending!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now