Windows logging out when you login

supersunbird

Honorary Master
Joined
Oct 1, 2005
Messages
63,951
Reaction score
17,539
Location
Garsfontein, Pretoria
This is just put on here as a guide for anyone having this problem. Its caused by a virus or the antivirus trying to remove it, im not sure. When you log into windows immediately logs itself back out to the login screen.

Put infected harddrive in other pc with up to date antivirus as a slave drive. Scan harddrive with antivirus and let it clean up all those nasty viruses.

Go to run in start menu. Type in regedit. Select HKEY_LOCAL_MACHINE. Go to File and select Load Hive. Browse to the infected drive and go to infecteddrivesletter:\WINDOWS\system32\config (or :\WINNT\system32\config for Win2000 users). Select the software file (not software.sav or .txt).

It will ask for a file name, type in anything your name. In this newly created Hive of yours, browse to Microsoft > Windows NT > CurrentVersion > WinLogon. Select the UserInit entry and make sure it is C:\WINDOWS\system32\userinit.exe, even if there is only a comma behind that, delete that comma, and if there is other text remove that too. Then go back up to where you had created your name in regedit and go to File and select Unload Hive.

Put the drive back into its PC and you should be able to login successfully. If you get error messages on startup, just click ok because there is no harm, those can be removed via regedit as well, but that process has more variables and is thus more complicated.
 
THANK YOU!!!! i had this problem last week though it was a Win32/virut... had to format :(
 
Sorry I dont post it earlier. knwon the solutions for couple of months now :(, this is a big problem in many government institutions/departments and spreads mainly through flashdrives and network shares.
 
And in other news.....if you use XP or Vista, boot to Safe-mode and do a system restore ;) :D :p
 
Get a copy of UBCD,;) pop that in your CD drive. Clean up the virus using the tools provided. Saves you the trouble of having to remove the drive from your box.
I had the same error on 12 pc's at a college in JHB. Spent two days cleaning up the workstations and the server.:sick:
 
The antivirus only is 4 May definitions, so thats why I didnt go that route...

But as long as people can find the info if they go google, i hope this thread helps...
 
Get a copy of UBCD,;) pop that in your CD drive. Clean up the virus using the tools provided. Saves you the trouble of having to remove the drive from your box.
I had the same error on 12 pc's at a college in JHB. Spent two days cleaning up the workstations and the server.:sick:

Yip, UBCD4WIN is berry berry nice ;) :D :p
 
I get this problem at least once a week with clients pc's. Windows repair always works..
 
my mate had this problem on his laptop during the week... ended up having to re-format his HD... Could not log on in safe mode, could not do anything at the DOS prompt even... eventually took his laptop HD out, put it in an external case, took what he could and re-formatted....
 
Top
Sign up to the MyBroadband newsletter
X