Windows Log on and Log off immediately.

You may face this problem when logging on to Windows. When you type user name and password you are again presented with User name and Password dialogue box. You try hard to get in but to no avail.

You may not be able to log on to system using either Normal Mode or Safe Mode. This occur only when Winlogon service tries to load the Windows default shell (explorer.exe) and user shell (userinit.exe) from registry. This service searches for Explorer.exe and Userinit.exe in the following path of registry:

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

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 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 Infected computer.
  • You should be able to log on to computer.

Comments

# re: Windows Log on and Log off immediately.

Monday, July 02, 2007 6:55 PM by kumar

I have windows 2003 server in my notebook with SAP installed in it.I dont want to loose SAP from it.Can you please tell me whether i have to do this process with windows cd in it ? or i can do without windows cd.

Note : i have windows XP not windows server 2003

Please help me

# re: Windows Log on and Log off immediately.

Sunday, November 11, 2007 12:19 AM by no time

Thank you

i have same probelm but you solution dosnt solve it

# re: Windows Log on and Log off immediately.

Sunday, March 09, 2008 12:31 PM by Louis

Thank You,

I have the same problem and I did exactly what you say, but i did not solve the problem.

What can I do?

# re: Windows Log on and Log off immediately.

Sunday, March 09, 2008 11:31 PM by Nirmal Sharma

It depends on your situation. Do you get any error message when you try to log on to the system or a blank desktop?

Nirmal.

# re: Windows Log on and Log off immediately.

Tuesday, June 10, 2008 2:02 PM by dwisby

These instructions, as several users have alluded to, do not work. Any other ideas that would be helpful. The situation is the fix you suggested did not work.

# re: Windows Log on and Log off immediately.

Tuesday, June 10, 2008 8:19 PM by Nirmal Sharma

This could be one of them.

# re: Windows Log on and Log off immediately.

Monday, September 08, 2008 3:59 AM by wael

i did exactly like you said . but nothing change

# re: Windows Log on and Log off immediately.

Monday, September 08, 2008 10:31 AM by No Time

i did exactly like you said . but its not solve the problem.

support.microsoft.com/.../555648

# re: Windows Log on and Log off immediately.

Tuesday, September 16, 2008 3:58 AM by Computer Noobie

So what to do to solve the frustrating problem

# re: Windows Log on and Log off immediately.

Friday, September 19, 2008 7:22 AM by Aiy Yo Wad To Do

The solution does not work...I followed the steps until Connect Network Registry then after that cannot connect to the infected computer. The Registry Editor say must BOTH computer on the registry service. How can?! One of them cannot log on wad...

# re: Windows Log on and Log off immediately.

Friday, September 19, 2008 9:48 AM by Nirmal Sharma

The solution requires that you enable the remote registry on both the computers. If infected computer doesn't have the remote registry enabled then you can enable using the Recovery Console. In Recovery Console, you need to enable the service for the Remote Registry.

Have a look at the below URL to enable/disable any service in the Recovery Console:

www.windowsnetworking.com/.../DisablingServicesinRecoveryConsole.html

Nirmal.

Leave a Comment

(required) 
(required) 
(optional)
(required)