Discussion Locked

WIndows XP logs off as soon as i login

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

am using Win Xp Professional on my laptop, i logon using my local account.but as soon as i logon it logs me off. it repeats in "safemode" as well. am not able to get the hold of it.

whatz causing this behaviour ?

12 replies

by sgt_shultz

i am guessing you are on a LAN and suggest you contact your network administrator to verify your local login privledges?

by w2ktechman

It might be a corrupt user.dat file. Or it could be a startup service that is failing (like winlogon). try doing a system restore, or a recovery from the XP disk. Afterwards, scan for virus.

by walkerxp92

Try booting into safe mode and as soon as you can do anything quckly run stinger, sounds like you have a virus. Stinger runs really quick and you may be able to have just enough time to run stinger befor it reboots again. You will be able to download this program on a floppy, so download it on the floppy than be ready to run it when it comes up. http://download.nai.com/products/mcafee-avert/stinger.exe

by mike_polisky

SimY's response - Answer 4 was right on target.
I had the same problem today and from SimY, I found the solution.

by narasimhulu

Hey ,
i had the exact problem after uninstalling the annoying Search Assistant update (Windows SA) because i found it a pain. The network and everything runs in the background, but logging in makes it log off again! Anyway, i found the fix on another forum!!!

Cause:
Windows SA replaces userinit.exe used in logon with its own wsaupdater.exe. But uninstalling doesn't revert it back.

some adaware programs may also remove or quarantine wsaupdater.exe thinking that it's harmful.

Fix:
1. Boot using your winxp cd.
2. Enter recovery console.
3. at the command prompt go to

C:/windows/system32

4. next type:

copy userinit.exe wsaupdater.exe

5. exit and reboot normally. You should now be able to logon. But you're not done yet!

6. run regedit

7. find the Userinit key in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\

8. modify the entry:

C:\WINDOWS\System32\wsaupdater.exe

so that it reads:

C:\WINDOWS\System32\userinit.exe

That should do the trick! no reinstalling windows required!

8. modify the entry:

C:\WINDOWS\System32\wsaupdater.exe,

so that it reads:

C:\WINDOWS\System32\userinit.exe,

** Make sure you have the comma!

by samir

i tried the above procedure but it still does the same what do i do now ............

by cruze007

I have completed steps 1-4.
I type command - copy userinit.exe wsaupdater.exe and it states 1 file copied.
I then exit and reboot, but the problem is still occuring.

The moment it logs me in, it logs me out !

PLEASE HELP !!

by aperfecttool6944

Ok, I have the same problem logging on then it automatically logs me off, the other problem I am having is my dvd rom drive does not appear to be reading anything, and I have tried to swap dvd drives and still cannot load the xp cd...what am I supposed to do now??

by jsun.hy

I had a similar problem of an automatic log off on log on Windows XP Home Edition SP3 desktop. In my case the file userinit.exe was missing form the folder "%systemroot%\system32\". %systemroot% for me was C:\WINDOWS\.
I copied the file userinit.exe from my Windows XP Professional SP3 on my laptop and it solved the problem. However, in my case a virus had infected userinit.exe and it was deleted in the cleaning process.

by jsun.hy

This may be a case of the file userinit.exe missing from %systemroot%\system32\, where %systemroot% is often, but not always C:\WINDOWS (i.e. the folder housing your Windows installation files).

The first step is of course to check for the presence of the file before following any of the other suggestions. Only if the file is absent should you continue to follow the other suggestions.

You should also see: http://support.microsoft.com/kb/892893 to determine if this is your specific problem. It describes an issue where the of a Registry key was modified to point to a different file other than "userinit.exe".

To correct the missing file problem you need:
1) A copy of userinit.exe from a similar Windows XP installation. I am not sure how to obtain this from the Windows CD directly.

2) A Windows Live CD such as Active Boot Disk (Windows Edition) for WIndows Explorer styled copy and paste and the flexibility of USB flash drive recognition OR ALTERNATIVELY a Linux Live CD with NTFS write access.

If the file is absent try placing it in its intended location and restart the PC.

This discussion is closed to new replies.