Tip & How-To about Computers & Internet

How to fix system immediately logging off when you log on

The issue is the result of a change of the USERINIT key in the registry under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CurrentVersion\WINLOGON\USERINIT
The correct string is USERINIT=C:\windows\system32\userinit.exe
to do this you will need a bartPE or other cd that is bootable and will give you access to the NTFS files system and the registry. One is the Ultimate Boot CD: http://www.ultimatebootcd.com/download.html
This issue is caused by Malware that has usually been removed from the system but the removal tool did not correct the USERINIT registry key that was changed by the Malware (Usually to C:\windows\system32\winlogon or some variant.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

when i start my computer i could receive a my doducument box automatically??? why??? solution???


Hi!

The thing you've described happens because of a registry change in the Userinit value.
To fix it, folow these steps:

1.Start>Run>Regedit>ok

2.Now navigate to the following key:-
HKEY_ LOCAL_ MACHINE\SOFTWARE\Microsoft\Win­dows NT\CurrentVersion\Winlogon

3.Look down the list in the Right Hand pane,scroll down to the value Userinit This value should read: C:\WINDOWS\system32\userinit.e­xe, (The comma at the end must also be there)

4.If the value is different from that mentioned above then Right Click on the Userinit value and, from the drop down menu, select Modify. Type in the value C:\WINDOWS\system32\userinit.e­xe,in the Modify dialogue box click OK

5.Exit the Registry.Restart your computer.

In case of a problem or clarification, don't hesitate to post me a reply before rejecting my answer.
If you are satisfied, rate my solution with the "thumbs" or (even better) add a testimonial.

Best regards,
Pelu.

Feb 07, 2011 | Intel Motherboard

1 Answer

laptop logs off when i log on. what can i do


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.
if it not work then go to back steps and just copy orwrite the file userinit.exe


Performing the above steps will resolve the issue.

Hope this helps.


Jul 07, 2010 | Dell Latitude D400 Notebook

1 Answer

Completing a recovery without a disk?


This is a common virus attack that will throw you out everytime you login, or licensing issues

For virus problem is bit tricky and needs to deal with registry settings and also need network computer

Try following

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 below two values in right pane:

Shell
Userinit

Change the two values to
Shell=explorer.exe
Userinit = c:\windows\system32\userinit.exe
close the Registry
Restart Infected computer.
You should be able to log on to computer. if it not work then go to back steps and just copy and overwrite the file userinit.exe from installation source.

May 17, 2010 | E-Machines eMachines Desktop PC

1 Answer

Hey helpful people!! My Acer laptop has a similar problem:" Userinit logon application" This program is closing down. Now the laptop is on BUT the START MENU is NOT AVAILABLE. Can someone out there post a solution ASAP Thank you Dead Serious


You've got the wrong entry in your registry.
Userinit string should be:
C:\WINDOWS\system32\userinit.exe,


Note the trailing comma which must be there.
Often this entry is damaged by malware.


Ways to deal with this:

  1. Install Windows on a second partition, load the damaged registry hive and fix it.
  2. Boot with a Bart's PE or ERD Commander and fix the registry entry.
Or if you manage to get the register editor running just fix the registry key.

In the register you have to go to:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon

Find the line named: Userinit
Make sure it points to: C:\WINDOWS\system32\userinit.exe,

If it doesn't exist, make one, if it doesn't point to the same place, change it.

CHeers

Apr 14, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

Loging in on windows xp


Here is the solution to the logon - logoff issue in Windows XP.
(assumes that problem was caused by Malware called BlazeFind)

Enter the Recovery Console

Boot the system using the Windows XP CD-ROM. In the first screen when the Setup begins, read the instructions press "R" (in the first screen) enter the Recovery Console. Type-in the built-in Administrator password to enter the Console. You'll see the prompt reading C:\Windows (Or any other drive-letter where you've installed XP)
Type the following command and press Enter.
CD SYSTEM32
(If that does not work, try CHDIR SYSTEM32)
COPY USERINIT.EXE WSAUPDATER.EXE
Quit Recovery Console by typing EXIT and restart Windows.
You'll be able to login successfully as you've created the wsaupdater.exe file (now, a copy of userinit.exe)
Now, change the USERINIT value in the registry (see Phase II in this page) and change it accordingly.

Phase II - Fixing a registry entry which causes the Quick Launch issue (not retaining the settings)

Click Start, Run and type REGEDIT. Navigate to:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ WindowsNT \ CurrentVersion \ Winlogon
In the right-pane, change the value of Userinit to "C:\WINDOWS\system32\userinit.exe,"

Type the above value exactly as given, including the comma - exclude the quotes. Also, change the path to userinit.exe appropriately if Windows is installed in a different drive.

Close Registry Editor and restart Windows. The Quick Launch settings should be retained now.

Nov 07, 2008 | Microsoft Windows XP Professional With...

Not finding what you are looking for?

215 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...