Windows XP automatically logs off

December 2016

Corruption of the computer system registry can lead to problems whilst logging in to a Windows XP operating system. Windows XP might automatically log off while verifying the username and password input during logon. The problem can be solved by changing the Connect Remote Registry for the values of explorer.exe and userinit.exe. The Windows XP installation CD may be required in case the two *.exe files go missing due to spywares or malwares. Making changes in the registry may only be done after backup of the registry has been made as incorrect settings in the Windows registry will lead to a system crash.


Issue


I've recently hit a snag: my Windows XP boots up as usual to the logon screen, but as soon as I input my password, Windows will play the log on sound and then just automatically log me off again. I've tried many times to get Windows to carry on running including booting from the CD and repair, but every attempt has been unsuccessful.

Is there another way? A friend of mine suggested trying to activate the guest account at the logon screen, but I have no knowledge of how and neither does he. Will this rectify the problem for now?
I am planning on getting a new PC soon, but need access to my user account as there are many important documents for my work on it as well as 10GB of music that I don't want to lose.

Solution


To solve this problem:
Edit these values and type the correct path of shell :

Shell = explorer.exe   
Userinit=X:\windows\system32\userinit.exe 


NOTE: these files may also be deleted by spywares. You may need to extract them using the Windows CD.

Steps for rectifying this problem:

Log on to a networked computer.
  • Run Regedit.exe
  • Point your cursor to
    HKEY_LOCAL_MACHINE 
  • Select File > Connect Remote Registry
  • Type computer name (infected computer)
  • Navigate to the following location in registry of destination or infected computer


HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon 


Edit these two values in right pane:

Shell   
Userinit 
  • Change these two values to
    • Shell=explorer.exe
    • Userinit = x:\windows\system32\userinit.exe
  • Exit from Registry
  • Restart the infected computer.

You should be able to log on to the computer. If it does not work then go back steps and just copy or write the file userinit.exe

Worked successfully - 100 percent guaranteed.

Note


Thanks to waqar for this tip on the forum.

Related :

This document entitled « Windows XP automatically logs off » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.