I had a problem where trying to remotely log into a Windows XP machine would show the login process and play the login sound, but then instantly log off (and play the logout sound).
A bit of searching found the apparently culprit: The userinit.exe process was incorrectly referenced:
- Connect the infected computer to a network which has at least one healthy computer connected. Power on both of the computers
- From the healthy computer, Go to Start > Run, type
regedit.exeand press enter. This will launch the registry editor
- Go to File > Connect Network Registry, by using this infected computer’s name or IP address
- Locate this entry
- At this entry there is a key names userinit, double click on the key and set its value to
- Exit the registry editor, restart the infected computer.
However, my registry key was already this, and it was still failing after manually setting it.
It turned out the problem was that because I had recently cloned the hard drive, Windows had renamed the new drive from C: to E:. Consequently, while Windows could start (because there was only one boot partition), it couldn’t find the location of the userinit.
I played around in the remote registry until I found out how to rename the new E: to C:
- Open the registry remotely (as above)
- Browse to
- There should be at least two entries; one for C: and one for E:, under
- Rename the two keys around. Restart the machine and try logging in again.