Windows XP Automatically Logoff after logon
For long time ago , I experiment with this problem too many times. and what I can do with it is, Format and Reinstall the windows. But now This problems happened on my boss’s computer, That why I have to try my best to find the solution to fix for him.
I have google it many time ago, but still can not find the right solution for this kind of virus. But I think depending on the level of the infection. if you were in the medium ,you maybe lucky!
This problems happened after you clean that virus from your computer ( I don’t remember what is the name of virus). So if yo have the same problems as me , hope you maybe able to fix it also.
Step 1: Create a BartPe Bootable CD
“BartPE” (Bart Preinstalled Environment) is the bootable Windows CD-Rom or DVD from the original Windows XP that we can say Live CD that, very suitable for PC maintenance tasks.
To built it by ur selves please go to : http://www.nu2.nu/pebuilder/ to download the PeBuilder latest version and read the instruction to built your own bootable CD.
Step 2: Verifying and fixing the Userinit.ext
1. Insert the BartPE CD into the drive, and boot the system from the CD. Once the file loading phase is over, the Bart PE desktop will be visible.
2. Type Regedit.exe in the prompt, and press Enter. Select the HKEY_USERS hive.
3. From the File menu, choose the Load Hive option. Browse to your Windows installation drive
C:\Windows\System32\Config\
4. Select the file named SOFTWARE (the file without any extensions), and click Open.
5. Type a name for the hive that you’ve loaded now. (Example: MYHOUSE)
6. Now the SOFTWARE hive is loaded, and present under the HKEY_USERS base hive.
7. In order to fix the Userinit value in the loaded hive, navigate to the following location:
HKEY_USERS \ MYHOUSE\ Microsoft \ Windows NT \ CurrentVersion \ Winlogon
8. Double-click Userinit and set it’s value correctly. Example: Set it’s data as follows:
C:\Windows\System32\Userinit.exe,
Tags: automatically, bart pe, bootable windows cd, config, logon, Microsoft, pc maintenance, problem, regedit, system32, Windows, windows xp, winlogon











ChevronX on 19 Mar 2009 at 11:15 pm #
Also Combofix has been my Saviour for fixing non explorer.exe loading problems.
If the above don’t work you can also extract and get another Userinit.exe and replace the one you have & get it to logon.
Prashant Chitkara on 27 Jul 2009 at 5:18 am #
Thanks a lot, I could successfully complete the job but it could not have been possible without your post.
Best regards
Prashant Chitkara
felipe on 07 Oct 2009 at 6:51 pm #
I have done all the the steps, creating the bartpe disc, and loading it first.. i have enter regedit, gone to hkey/_users and looked up the hive “software.log” and loaded that, but it will not let me access to install the file name “Myhouse”… is there another way around it? so i can rewrite the “userinit.exe” file?
Virus Downloader on 03 Dec 2009 at 3:39 am #
Thank you so much for your post – saved my evening!
Matt on 28 Jan 2010 at 1:36 am #
When I boot the cd, I dont see BartPE desktop. Should I go to recovery console?
Tony on 11 Mar 2010 at 10:33 pm #
Excellent guide! Now my computer works again. Thanks a lot!