Manual steps to recover a corrupted registry that prevents Windows XP from starting
The procedure that this article describes uses Recovery Console and System Restore. This article also lists all the required steps in specific order to make sure that the process is fully completed. When you finish this procedure, the system returns to a state very close to the state before the problem occurred. If you have ever run NTBackup and completed a system state backup, you do not have to follow the procedures in parts two and three. You can go to part four.
Part one
In part one, you start the Recovery Console, create a temporary folder, back up the existing registry files to a new location, delete the registry files at their existing location, and then copy the registry files from the repair folder to the System32\Config folder. When you have finished this procedure, a registry is created that you can use to start Windows XP. This registry was created and saved during the initial setup of Windows XP. Therefore any changes and settings that occurred after the Setup program was finished are lost.
To complete part one, follow these steps:
1. Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer.
Click to select any options that are required to start the computer from the CD-ROM drive if you are prompted to do so.
2. When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
3. If you have a dual-boot or multiple-boot computer, select the installation that you want to access from the Recovery Console.
4. When you are prompted to do so, type the Administrator password. If the administrator password is blank, just press ENTER.
5. At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak
delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default
copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
6. Type exit to quit Recovery Console. Your computer will restart.
Note This procedure assumes that Windows XP is installed to the C:\Windows folder. Make sure to change C:\Windows to the appropriate windows_folder if it is a different location.
This is the Best of the Best But with One Problem I am Not responsible For Lost Data if You Lose data Just Get a Recovery data Software For your Pictures and Music Files...
by changing "c" into "x" it creates a loop right back to the "log on" page.
WAQAR GILGITI, your a jerk.
in my case c:\ is my hdd with windows on it and d:\ is my dvdrom but i have other setups where its completely different
now on a more serious note if the registry entries he mentioned are intact(ie the way they are supposed to be) the issue could be a missing userinit.exe file. more clear instructions on how to replace it would be helpful so here's what happened to me last night.
i tried the expand command from recovery console:
expand d:\i386\userinit.ex_ c:\windows\system32\userinit.exe
but in my case i got the "file could not be created" error so i expanded the file to another directory (the root of c:\) and used "winternals erd commander 2005" and moved the file to the system32 folder, that solved that issue
if you don't have "winternals erd commander" cd you could use somthing else like a PE cd such as BartsPE or even a Linux live cd like ubuntu.
for more information use google search and try not to read Microsoft's "official" help they are confusing. reading is good for you (at least they say it is) so read as much as you can about how others solved this issue as well, i have only given details of my latest effort, its different everytime.
I just copied the file from my cd right to my c:\Windows\system32\.
Under the Windows xp repair console,
type:
copy e:\i386\userinit.ex_ c:\windows\system32\
as stated above you can make use of a knoppix cd to boot the pc with linux and then use USB stick to copy userinit.exe from abother maschine to this maschine.
Knoppix can be found here http://www.knoppix.org/.
Best regards,
Daniel
I was able to get the Knoppix boot disc. How EXACTLY do I do all of this (use USB stick to copy userinit.exe)?
And how do i get userinit.exe? Do i still put it on a usb stick when using Knoppix? Step-by-step instructions is what I need. I know it's a lot to ask, but like most here, i'm having trouble.
I'm having the same problems as everyone else. I get to the xp logon screen, insert my password and it logs right off. I don't have the XP boot disc, but I do have Knoppix and it's my first time using it (go easy on me please).
Waqar took his time to post a fix and because you lack inteligence you insult him?
Really impressive
What are you; his mother?
I'm having a similar problem - my computer logs in for about a minute or so then logs off and shuts down. What makes matters worse is that it is doing the same thing in safe mode and my computer won't stay logged on long enough to find a fix/solution.
Any help would be mucho appreciated.
do not specify the file name to be extracted to.... it will fail... ie:
expand d:\i386\userinit.ex_ c:\windows\system32\
or if you CD into \windows\system32
expand d:\i386\userinit.ex_ . will work.
Later!!
Thanks man. What a pain in the nutsack
* waqar, on Tuesday December 30, 2008 04:50:00 AM
* the_apocalypse, on Friday January 2, 2009 03:29:00 AM
* SNoWDoGG, on Thursday January 22, 2009 01:20:29 AM
Thanks!
this is the worst virus I ever saw. It stops you from getting to task manager, run, and by the time nortons or ad-aware new their was a virus it was already to late. the antivirus or virus tells you to reboot and when you do, you are now locked out of your computer. Whoever made this virus is very talented. Its a shame that much talent is used in such an evil way.
Oh please. It takes little talent to create a virus. It takes alot of talent to defeat a lonley low-lifes hard useless work. There not a virus created that hasnt been defeated in half the time it took to create it.
~KB*
Any help would be greatly appreciated
Thank You
i just did what i copied the wininit file from C:/windows/system32 of another system and had it in a USB
and in the recovery console copied it to my own C:/windows/system32 folder
and it worked fine :D thank you
and yeah my computer doesnt have a CD rom its a Notebook soo i had my own Bootable usb to work on it
Thanks again
You saved me with your explanation how to expand a file from CD, you really made my day ...
nilan
again saying that file is missing ie "windows\system32\config\system
can u help me out of this problem
plzz
asap
thnzzzzzzzz if u reply will come
ok
Thanks
Just been looking at posts by you regarding the auto log off when starting up windows XP. I see everyone thinks your post works but i don't understand wher you put this propt into? I'm useless when it comes to computers. Would you be kind enough to give me a step by step guide or know where i can get one.
Also i don't have the original CD etc.
Hope you can help
Thanks Chad
I'm having the similar problem, except it happened on my laptop ... I had a Trojan virus removed it with AVG and now I cannot log in at all. I've tried the Safe Mode and the Networking Mode, but it wouldn't log me into my admin account either. I have no idea how to remove the HD on a laptop. I have an Hp Laptop and its running Windows XP.
Can anyone help me out??
Def.Confused
Thanks,
Heather
thnax a lot
then how to run regedit command
to rectify this problem
Thank you so much, it is worked for me i resolved my same issue. thanks again
Under,
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ WindowsNT \ CurrentVersion \ Winlogon
as mentioned above, there's an entry/STRING showing up as "Userinit" with "C:\Windows\System32\Userinit.exe," as the Value Data (No Quotes are to be used obviously). Don't be dumb like me though, I was stressing out when I had put a ";" versus just the "," which will cause the same Log On/Log Off issue to happen.
To modify the registry, I used a combination of ERD Commander & Bart PE Boot discs.
If you're looking for a replacement Userinit.exe file, you can sometimes use the one under
C:\Windows\System32\Dllcache
but if it's infected, you can copy the Userinit.exe from C:\i386 (if it exists).
I normally replace the Userinit.exe from C:\i386 to:
C:\Windows\System32\Userinit.exe
C:\Windows\System32\Dllcache\Userinit.exe
My post is repetitive, I know, but at least it lets you know to be on the lookout for a missing Userinit String under Winlogon
Just wanted to say thanks a lot for the tip. After hours of searching I realised the userinit.exe had been removed somehow and I just replaced it with one from here
http://www.f-prot.com/support/files/win-xp-sp2-de/userinit.exe
and it restarted perfectly!
Cheers!
IT WORKED!!!!You are brilliant, I've been f^%king with this issue for the last 8 hours and came really close to swapping out my machine for another out of frustration. I don't care what Robes says, I would have your baby! Now I can finally get some GD work done. You da man, man.
+11Edit these values and type the correct path of shell :
please help thanks
jan
God knows why but my machine decided it suddenly wanted a password and after digging around in /sys38 i found there was no userinit.exe.
This post gave me the rest.
Machine now fine.
in the Registry editor
file menu i can't see "connect remote registry" but there is "connect network registry"
After i connect network registry i use the advanced then find now to selct the network (infected) computer.
once i select the below key, there is an error shows as below :
hkey_local-machine: error while opening key.
please advise how to solve it?
thanks for ur support.
I am running XP sp2 and I got a virus Internet SEcurity 2010..pop ups. So i updated my norton and tried to fix it but now I have the auto log off. So I have tried copying, deleting etc the userinit and wsaupdater files with no success so I thought I needed to fix the registry. I am trying to use Hirens CD to do that with no luck. I have alread spent a day & half on it.
Hirens - if I boot to mini xp and edit the reg. it doesn't seem to work.
if I try to run the reg edit tool I get a memory error
HELP!!
I have similar prob of not able to log in in system (immidiatley logs out). I tried to change the values in REGEDIT (both values) but still problem remains.
I didn't understand the option of copy it frm other system. Do I need to connect other laptop (desktop) using network cable ?
Or if both machine machine connection to same wireless internet connection ?
Please help me.... i am in really bad shape.
Thank you,
Thanks for the information and saving me....
Many thanks for the information and saving us!!!
It fanatastic to my PC back working.