Cleverly solve the problem of automatic logout when logging in to Windows system

  

Resolve the problem of automatic logout after WinXP/Win2000 login

Symptom: Log out automatically after login, and enter the user name and password correctly after Windows2000XP login window appears. The "Personal Settings …… dialog box is being loaded, but I immediately returned to the login window, repeated many times, and the problem remains. In safe mode, it is also impossible to log in the userinit.exe file and its related registry key value error can not log in normally. The userinit.exe is normally located in the system directory. For example, in Windows XP system, it is under C:WINDOWSSYSTEM32. The description in the property is: Userinit Logon Application, and there is a key in the registry pointing to this file: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonUserinit On my Windows XP system, this key value is: C:WINDOWSsystem32userinit.exe, (on Windows 2000 systems) The key value is: C:WINNTsystem32userinit.exe,) After logging in to the system, the key value will be read first and the program pointed to by it will be executed. If the key value is modified by some virus or the userinit.exe file is deleted by mistake, Logout will occur immediately after logging in to the system. It can only be repaired by using the operating system's installation CD and some system rescue CDs circulating on the network.

Troubleshooting method: The recovery method of userinit.exe file and registry key value error is different, so it is expressed separately. 1, userinit.exe file loss method First, in-situ upgrade installation Many system problems can be solved by this method, such as repeated automatic restart, etc., the advantage is that it does not affect the original application software, personal settings will not be lost, the disadvantage is that flowers More time, reinstall the system for at least half an hour or so. For details on the in-place upgrade installation, please refer to Microsoft's KB: Windows 2000: http://support.microsoft.com/kb/292175/en-us http://support.microsoft.com/kb/306952/en- En Windows XP: http://support.microsoft.com/kb/315341/en-us Windows 2003: http://support.microsoft.com/kb/816579/en-us Method two, using the Recovery Console from The Windows 2000 installation CD comes with the Recovery Console feature, which can solve many system problems. For how to use the Recovery Console, please refer to Microsoft's KB: Windows 2000: http://support.microsoft.com/kb/318752 /zh-cn Windows XP: http://support.microsoft.com/kb/307654/en-us Windows 2003: http://support.microsoft.com/kb/326215/en-us For the issues described in this article The solution is to use the operating system's installation CD to boot the computer into the recovery console, type (assuming the CD-ROM drive letter is F): cd system32 expand f:i386userinit.ex_ exit 2, userinit.exe related registry key error method one In-situ upgrade installation This method has been explained in the previous section, no longer repeatMethod 2: Use the system first-running CD-ROM with the registry editing tool on the network, such as the deep mountain red leaf pocket PE toolbox, the Chinese menu super-starting tool CD made by Rock2000, in addition, the "Computer Application Digest" is included in the monthly issue. The disc is also available. Here is an example of using the Chinese menu super tool boot CD (2005.10.30) as a repair method. Start the computer with this CD, select [1] Windows NT/2000/XP tool, then select [2] Windows PE Chinese version with Chinese ERD2003, enter the command line interface, type erd2003 to start ERD2003 system, start -> Registry The editor can be modified to the correct key value as described at the beginning of this article. This method is also the recommended method, which is fast and easy to operate. Method 3: Using the Recovery Console Because the registry cannot be edited under the Recovery Console, you can only restore the settings when the system is just installed. After the normal login, modify the current registry content of the pre-backup to the correct key. Then restore the modified registry and log in to the system normally. This method is more complicated, only if you don't want to use the method to reinstall the system and you can't find another emergency CD. Start the computer into the Recovery Console with the operating system's installation CD, type (Windows XP as an example, if you are using Windows 2000, change the windows in the following command line to winnt): md regtemp cd system32 cd config copy default Windowsregtemp copy sam windowsregtemp copy security windowsregtemp copy software windowsregtemp copy system windowsregtemp del default del sam del security del software del system copy windowsrepairdefault copy windowsrepairsam copy windowsrepairsecurity copy windowsrepairsoftware copy windowsrepairsystem exit After rebooting, the configuration file when the system is just installed will be restored, after logging in to the system , Start -> Run -> regedit (if you are using Windows 2000 operating system, you should type: regedt32 here), find the HKEY_LOCAL_MACHINE registry branch, file -> load the hive (Windows 2000 system is: registry -> Load the hive), load the c:windowsregtempsoftware file just saved in the Recovery Console, and take an item name (for example: reg Temp), then find the key value at the beginning of this article under this item, modify it to the correct value, select the regtemp item just loaded after the modification is completed, File -> Uninstall the configuration unit (Windows 2000 system: Registry -> Unload the hive). Restart the computer into the fault control console, type (Windows XP as an example, if you are using Windows 2000, change the windows in the following command line to winnt): cd system32 cd config del default del sam del security del software del system Copy windowsregtempdefault copy windowsregtempsam copy windowsregtempsecurity copy windowsregtempsoftware copy windowsregtempsystem exit

Copyright © Windows knowledge All Rights Reserved