How to Fix the Automatic Log off of Windows while Logging in

Recently I came across a problem of Windows automatically logging off. This happened when I was logging into Windows. Windows showed that it was applying settings, saving settings and logged off automatically without even logging in. This is really annoying and frustrating when you are in need of your computer for an important work.
The reason for this problem…
It’s the result of a Virus or a Trojan which corrupts the registry key holding the value of the files which are executed while logging in to windows. The other possibility is, the registry key getting replaced with some incorrect value.
The fix for the problem…

1. You need to connect the infected computer to a network. Make sure that there is one computer in the network which doesn’t suffer from this problem. Now, switch on both of the computers, i.e. the infected and the working computer.

2. From the working computer, Go to Start> Run, type regedit.exe and hit enter. This will launch the registry editor.

3. Go to File> Connect Network Registry, by using this infected computer’s name or IP address.

4. Locate the following entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\

5. In this entry there is a key named userinit, double click on the key and set its value to “C:\WINDOWS\System32\userinit.exe,”
If the problem still persists then you need to run a repair setup. Check out for detailed instructions on running a repair setup over here.



16 comments for “How to Fix the Automatic Log off of Windows while Logging in”

web analytics