Windows XP logs out automatically after Logon

Source: Internet
Author: User

After searching, some online users experienced similar problems. The fault was caused:

The userinit.exe file is lost and Its Related registry key value is incorrect, leading to abnormal system logon.

Symptom: log out immediately after login
Userinit.exe is generally located in the system directory. For example, in Windows XP, it is under C:/WINDOWS/SYSTEM32/. The description in the file attribute is: Userinit Logon Application, at the same time, there is a key value in the Registry pointing to this file:

HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/Winlogon/userinit

On my Windows XP system, the key value is C:/WINDOWS/system32/userinit.exe,
(On Windows 2000, the key value is C:/WINNT/system32/userinit.exe ,)

If the license file is deleted by mistake, it will be logged out immediately after you log on to the system. You can only use the operating system installation disc and some system emergency discs circulating on the network for repair.

Troubleshooting method:

The restoration methods for userinit.exe file loss and registry key value errors are different, so they are described separately.

1、userinit.exe File Lost

Method 1. In-situ upgrade and Installation

Many system problems can be solved using this method, such as repeated Automatic Restart. The advantage is that it does not affect the original application software, and personal settings will not be lost. The disadvantage is that it takes a lot of time, it may take at least half an hour to reinstall the system.

For details about in-situ upgrade and installation, refer to Microsoft's KB:

Windows 2000:
Http://support.microsoft.com/kb/292175/zh-cn
Http://support.microsoft.com/kb/306952/zh-cn

Windows XP:
Http://support.microsoft.com/kb/315341/zh-cn

Windows 2003:
Http://support.microsoft.com/kb/816579/zh-cn

Method 2: Use the fault recovery console

The fault recovery console function has been installed on the CD from Windows 2000. It can solve many system problems. For how to use the fault recovery console, refer to Microsoft's KB:

Windows 2000:
Http://support.microsoft.com/kb/318752/zh-cn

Windows XP:
Http://support.microsoft.com/kb/307654/zh-cn

Windows 2003:
Http://support.microsoft.com/kb/326215/zh-cn

The solution to the problem described in this article is to use the operating system installation disc to start the computer into the fault recovery console, type (assuming the drive letter is f ):

CD system32
Expand F:/i386/USERINIT. ex _
Exit

22.16userinit.exe related registry key value error

Method 1. In-situ upgrade and Installation

This method is described in the previous article.

Method 2: Use the system emergency discs circulating on the network

The CD can be attached with a registry editing tool, for example, a pocket PE toolbox in the mountains and red leaves, and a Chinese menu super Boot Tool CD made by rock2000. In addition, the CD can be attached to the monthly journal of "Computer Application Digest.

Here we will use the Chinese menu Super tool to start the CD (2005.10.30) as an example to describe how to fix it.

Start the computer with this CD, select the [1] Windows NT/2000/XP tool, and then select the [2] windows PE Chinese edition with Chinese erd2003. after entering the command line interface, type erd2003 to start the erd2003 system, start-> Registry Editor, and change it to the correct key value as described at the beginning of this article.

This method is also recommended, fast and easy to operate.

Method 3: Use the fault recovery console

The registry cannot be edited in the fault recovery console. Therefore, you must first restore the normal Logon Settings when the system is installed, and then modify the current registry content in advance to the correct key value, recover the modified registry and log on to the system normally. This method is complex. It is only used when you do not want to use the method to reinstall the system and cannot find other emergency discs.

Start the computer with the operating system installation CD to go to the fault recovery console, type (take Windows XP as an example, if you are using Windows 2000, change windows to winnt in the following command line ):

After the restart, the system will restore the configuration file that is just installed. After logging on to the system, start-> Run-> regedit (if you are using a Windows 2000 operating system, enter: regedt32), find the HKEY_LOCAL_MACHINE registry branch, file-> load configuration unit (Windows 2000 System: Registry-> load configuration unit), load the c: in the/windows/regtemp/software file, take an item name (for example, regtemp), find the key value described at the beginning of this article, and change it to the correct value, after the modification is complete, select the loaded regtemp item, file-> uninstall Configuration unit (Windows 2000 System: Registry-> uninstall Configuration unit ).

Md regtemp
Cd system32
Cd config
Copy default/windows/regtemp/
Copy sam/windows/regtemp/
Copy security/windows/regtemp/
Copy software/windows/regtemp/
Copy system/windows/regtemp/
Del default
Del sam
Del security
Del software
Del system
Copy/windows/repair/default
Copy/windows/repair/sam
Copy/Windows/repair/security
Copy/Windows/repair/software
Copy/Windows/repair/System
Exit

Restart your computer to enter the fault control console and type (take Windows XP as an example. If you are using Windows 2000, change windows in the following command line to WINNT ):

CD system32
CD config
Del default
Del Sam
Del security
Del Software
Del system
Copy/windows/regtemp/default
Copy/windows/regtemp/sam
Copy/windows/regtemp/security
Copy/windows/regtemp/software
Copy/windows/regtemp/system
Exit

After restart, you can log on normally.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.