Windows Log on and Log off immediately.
SYMPTOMS
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.
CAUSE
This occurs when Winlogon service tries to load the Windows default shell (explorer.exe) and/or user shell (userinit.exe) from the locations specified in the registry, IF the file(s) is/are not found at the specified location(s). This service searches for the last known locations for Explorer.exe and Userinit.exe in the following path of registry:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\
Cause Scenarios:
1. You once booted from c: and installed your OS on f:, and now you’ve removed the c: drive from your system and made f: the bootable drive.
2. You deleted the explorer.exe and/or userinit.exe file(s)
3. Corrupted registry.
4. Hell I could keep going for months on possible causes…
RESOLUTION
Edit these values and type the correct path of shell & userinit OR restore the files if they have been removed:
Shell = explorer.exe
Userinit=c:\windows\system32\userinit.exe
To fix this:
You have to find a way to edit the registry either offline or through the network to see if the registry has the wrong location of these files.
Often times however, the files have been deleted by spyware or accident. The easiest way to recover the files is to boot from a windows install cd, load the recovery console, browse to windows\system32\dllcache and copy the userinit.exe and/or explorer.exe to the windows\system32 directory. If they are not found in the dllcache directory, you may have to copy them to cd from another machine, then copy them to the system32 directory. Otherwise you’ll have to expand them from the i386 directory on the install cd.
APPLIES TO
* Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
* Microsoft Windows 2000 Service Pack 1
* Microsoft Windows 2000 Service Pack 2
* Microsoft Windows 2000 Service Pack 3
* Microsoft Windows 2000 Service Pack 4
* Microsoft Windows 2000 Standard Edition
* Microsoft Windows Server 2003, Standard Edition (32-bit x86)
* Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)