Windows 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.

Please read the latest Instruction!!!

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:

1-Because of the virus infected to your system, So make sure you use the antivirus ( Symantec, AVG Free Edition, Kaspersky,… ) to clean it from ur system.

2-After the anti virus found and clean it, PLEASE MAKE SURE DON’T RESTART YOUR COMPUTER !!! , if you restart you will no longer to enter your windows desktop.

3-Click start > run > type “regedit” and locate this registry path:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

You will see a key named: Userinit then double click on it and pasted the following value:


Here the screenshot:

4- If the “UserInit.exe” is currupted or damaged , you have to repair it using the Windows Recovery Console. to copy the file back:

a. Insert the original Windows XP CD (Windows XP with Service Pack 2 is preferred, but not required) and reboot the computer. You may need to configure your computer to boot from the CD-ROM drive.
b. When the Windows XP Setup has started, press “R” to “repair the Windows XP installation using Recovery Console”.
c. Select the Windows installation to repair (generally this is C:\Windows) by typing its number and then pressing ENTER.
d. Type the Administrator password and press ENTER.
e. Type the following commands:


NOTE: If your CD-ROM drive has a different letter assigned to it, enter “X:” instead, where X is the appropriate drive letter.
After entering “EXPAND USERINIT.EX_ C:\WINDOWS\SYSTEM32” you should see the text “1 file(s) copied”, in which case all went well.
Remove the Windows XP CD, type “EXIT” and press ENTER to restart your computer. You should now be able to log on as normally.


11 thoughts on “Windows Automatically Logoff after logon!

  1. How do you solve the problem of automaticly logging off right after you log on? I cannot log into windows to edit the registry. This is happening on my clients laptop computer that has a virus and he has files that he does not want to loose. I do not have another computer or the hardware to transfer his files from his hard disk to a backup drive.

    Any other ways to solve this problem? Anybody?

  2. Pingback: Best way to fix windows xp auto log off after login |

  3. Pingback: PC Tips for khmer…

  4. You still got this problems, because of the viruses is still in your computer. Mean this viruses embed its selve into the .exe file on your whole hard drive. So even you just format it, when u click on the files on other drives… it will infect to ur system again.

    The best solution is using the BartPE to do the registry change or replace a new userinit.exe file. I will post other effective ways soon…..



Fill in your details below or click an icon to log in:


អ្នក​កំពុង​បញ្ចេញ​មតិ​ដោយ​ប្រើ​គណនី របស់​អ្នក​។ Log Out /  ផ្លាស់ប្តូរ )

Google+ photo

អ្នក​កំពុង​បញ្ចេញ​មតិ​ដោយ​ប្រើ​គណនី Google+ របស់​អ្នក​។ Log Out /  ផ្លាស់ប្តូរ )

រូប Twitter

អ្នក​កំពុង​បញ្ចេញ​មតិ​ដោយ​ប្រើ​គណនី Twitter របស់​អ្នក​។ Log Out /  ផ្លាស់ប្តូរ )

រូបថត Facebook

អ្នក​កំពុង​បញ្ចេញ​មតិ​ដោយ​ប្រើ​គណនី Facebook របស់​អ្នក​។ Log Out /  ផ្លាស់ប្តូរ )


កំពុង​ភ្ជាប់​ទៅ​កាន់ %s