Userinit Issue

This is about a serious issue that disables users from logging on to their computers.
The cause for this issue may be one of the following:
  • Spybot S&D 1.3 with current detection rules without HellzSpy infection.
  • Spybot S&D 1.4 with current detection rules and HellzLittleSpy infection
These are errors caused by dated versions of Spybot S&D in combination with detection rules designed for the current Spybot S&D 1.5.2.
Symptom:
Logoff will occur directly after login.

Now the important part: How to regain login to the computer without the need for a reinstall. Please note that there are more methods to do this, the following have been chosen by me because they do have some advantages over other approaches.

1.Method: Remote Registry
The fastest and easiest way is to remotely connect the Windows Registry and edit it.
Requirements:
  • 2nd Computer in Network
  • remote registry service must run (default)

First you will need to start regedit on the 2nd computer.

Then select "File" - "Connect Network Registry..."
You will see the next screen where you can enter the network name or the IP Adress of the computer affected by the userinit issue.
In this example the IP is 192.168.13.172, yours is usually a different one. You may be prompted for user name and password, enter a user with administrative rights.


The next step is to navigate to the required location within the registry.
Code:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

The required default value and data:
Code:
for Windows XP
Userinit=c:\windows\system32\userinit.exe,

for Windows 2000
Userinit=c:\winnt\system32\userinit.exe,

Now edit the Value "Userinit"


As soon as the correct data has been entered the user can log on to the computer which had the userinit issue.

2. Method : Offline registry tools and password resetter
Requirements:
This tool requires a 2nd computer to download and create a bootcd, there are no further requirements.

The download can be found here
Download size is about 3 MB, which is quite small and makes this method recomendable

Once the CD is created the userinit affected computer needs to be started with this CD.

After the boot procedure has been completed, the system asks for the boot partition.
Usually the choice would be "1".
In my example it is "2".

Screenshot 1

After that the path to the registry is asked. By default the correct path is already given, so this can be accepted by pressing the enter key.

Screenshot 2

Next choose "2" : RecoveryConsole parameters [software]

Screenshot 3
On the next prompt choose "9" Registry editor

Screenshot 4
The system now enters a bash console like navigation for the Software key of the Registry.
Following commands may be helpful:
Code:
note that Names are case sensitive
ls - will list the current key contents
cd <$keyname> - will open the key given in <$keyname>
cd .. - will go up one layer of the key structure
ed <$valuename> - will open prompt to edit the value specified in <$valuename>

So entering:
Code:
cd Microsoft\Windows NT\CurrentVersion\Winlogon
Will lead you to the required location.
Screenshot 5
The command ls will list the contents.
Type
Code:
ed Userinit
Screenshot 6

Now enter the required Data for the Userinit Value:
Code:
for Windows XP
c:\windows\system32\userinit.exe,

for Windows 2000
c:\winnt\system32\userinit.exe,

Screenshot 7

With the following command the Data of the Userinint Value can be confirmed:
Code:
cat Userinit

Screenshot 8

If the data is correct you can now enter q to quit the registry editor mode.
Enter q again to exit the Software Hive.
You will now be prompted to save, enter y to save.

Screenshot 9

After that a prompt for a new run appears, enter n for no.
Screenshot 10
Reboot normally and log on to Windows.


Method 4:

This Method can be used in conjunction with Method 2 to restore login. The main issue with Method 2 is that it does not work if the NTFS file system is flagged as "dirty". Method 4 will remove this:
This option is valid for both Windows 2000 and Windows XP, only paths differ on both systems.

Requirements:
  • NTFS capable boot disk like NTFS4Dos
  • Offline Rcovery tool from Method 2
  • both tools can be found on the Ultimate Boot CD: Filesystem tools - NTFS Tools

Overview of steps:
  1. Start NTFS4Dos
  2. Copy and Backup of Software registry key (note: it is possible to end here)
  3. reboot and shut down properly
  4. restore latest Software registry key
  5. reboot directly to bootcd and apply method 2

Detailed description:

1. Start NTFS4Dos
If you start NTFS4Dos from the Ultimate BootCD (~115 MB download will require CD) you will find it in Filesystem Tools - NTFS Tools
Once started you will be required to enter "yes" to confirm that you use it for personal use only.

NTFS4Dos is owned by Avira and can also be downloaded from Aviras (~1.2 MB download, will require floppy disk)website.

2. Copy and Backup of Software registry key
What you need to do here is to backup the current software registry key and copy the backup software registry key.
Enter the lines in code according to your OS.

Windows 2000:
Code:
cd c:
or
c:


cd c:\Winnt\system32\config
rename software software.bak
copy c:\Winnt\repair\software software

Windows XP:
Code:
cd c:
or
c:


cd c:\Windows\system32\config
rename software software.bak
copy c:\Windows\repair\software software

3. reboot and shut down properly
At this point it is possible to get a proper login for Windows again. But since the Software key has been replaced by an old version most software is not properly registered anymore. If the latter does not matter to you, you may stop here otherwise follow the next steps.
You will need to properly shut down Windows, to make sure that the dirty flag is not set again. A safe way to ensure this, is to boot into safe mode twice and shut down using Windows functions namely "restart".

4. restore latest Software registry key
Now boot with NTFS4Dos again.
This time we will restore the file we renamed to software.bak earlier:

Windows 2000:
Code:
cd c:
or
c:

cd c:\Winnt\system32\config
rename software software.oldbackup
rename software.bak software

Windows XP:
Code:
cd c:
or
c:


cd c:\Windows\system32\config
rename software software.oldbackup
rename software.bak software

Remember that you now have a corrupted Registry again , so do not try to boot Windows now or the NTFS may get "dirty" again.


5. reboot directly to bootcd and apply method 2
Now follow the steps described in Method 2.
Changes should be writeable now.

edit3: corrected paths as reported by shame2
edit4: added Method 4 , removed Method 3 to save space
edit5: corrected wrong path for Windows XP
edit6: added further instructions for method 4
 
Phirounded: Didn't meen to leave you hanging ...had to get some sleep and go to work all day. Unable to spend time working on it tonight but I will try to test the bat file tomorrow eve. Thanks
 
I ran into this issue, which was frustrating but I found a MUCH easier way to correct the registry, suitable for more novice users.
Just download PC Regedit (free at pcregedit.com) on another computer. It's a bootable file you write directly in iso format to a CD. Boot the problem computer from the CD, and it automatically starts a registry editor. You just make the change Yodama listed in method 1, and you're done.
 
Well, I tried to find some DOS registry editor, but wasn't very succesful. If this one works, than the things are pretty simple, of course!
 
I'm using PC Regedit as suggested by freight but I can't figure out how to make the changes in method 1. When I select the userinit.exe file under the "system 32" folder and hit ok it gives me an error saying "unable to open/read the file you choosed."

What am I doing wrong?
 
I spent $153 for registry repair. Now I know the cause. That is after this has happened a second time. I will make sure that every one I know dumps Spybot. What a nightmare. I have spent hours on this.
 
I ran Spybot last night, after updating my definitions file, as I am wont to do. It found this so-called problem, along with some (presumably) legit ones, so I told it to delete them. Imagine my surprise when I got home from work and couldn't get into Windows!

3 hours later and I can see my desktop again now. Though I worry.

What I can't believe is you guys have known about this for a month and there was no warning provided to me at all. Nothing popped up saying 'Update the software or face dire consequences!' or that no changes had been made to the definitions file so that users of older versions wouldn't face this problem.

I used freight's suggestion of PCregedit. I found the interface very touchy and rather confusing. For some reason, the window that displays the values kept disappearing. But eventually (on several reboots), I managed to put in the necessary key value.

It did tell me my volume was dirty when I rebooted to Windows. But it's showing my desktop now. Do I need to muck with that method 4? I hope not.

To ihavelargefeet, you may want to look at the first part (but only the first part) of http://www.pcregedit.com/regedit_guide.html

You need to select the registry location first, before it actually opens the registry editor. Don't go looking for the userinit file location, because that's not what you to make changes to.

I may be too late to help you, but I hope that helps others.
 
Thank you Yodama for attempting to assist those of us that have had issues with Userinit setting.
I tried all of your suggestions and had a lot of trouble.
Apparently the issue was the changing of the registry key from a valid XP entry as shown
c:\windows\system32\userinit.exe,
to
c:\windows\system32\userints.exe,
Finally method 1 with 2 reboots into safe mode worked.
I finally, after 10 man hours of work, was able to get back into my system.
This was all caused by the upgrade I did from 1.5 to 1.6
Searching for this issue sent me all over the web including microsofts web. Finally the solution was found where the problem originated, at SPYBOT.
The real pain was caused by an inability to use the windows systems regedit.exe command.
If you can't edit the registry you can't fix the issues.
I learned a lot more than I had wanted to about Linux, bart, UBCD and the registry in general.
It would have been much easier if SPYBOT had a way to restore the registry backup it took from a startup CD.
I hope that in the future the SPYBOT engineers can find a quicker workaround and perhaps a way to insure that if the registry entry for USERINIT gets changes it relates to a valid USERINIT.EXE file in the correct location.
 
I followed the instructions detailed in this blog with limited success using all three methods as there is no Method 3. Using the instructions I was able to get my system up. However, I did not have access to any of the software loaded on my system including my printer. Nothing worked well. :oops: I took a look in the c:windows\system32\config directory where I located a file named sofftwar. :scratch: I renamed that file file using the NTFS4Dos. I assume this file was created by spybot. Once I renamed the file software, and followed the rest of the directions in method 4, my system came back fully functional. Once the system was restored, the spybot execution I was running that caused the crash executed. This method, however, is quite complicated if you have no knowledge of Dos commands. All said, i was able to get my system up and running again.:angel: However, I do agree there should be some kind of warning when there dangers associated with not updating the software. :nono:

Thanks for the assistance
 
It seems almost that each user has to apply unique solution...
Anyway, after all I luckily uninstalled the Spybot (because the new update couldn't install TeaTimer, imho the most worthy application from Spybot - probably it was only due to a bad setup file) and everything works great now!
 
I'm facing the same issue of windows XP login/logout loop. I read different options mentioned here and there.
First I tried to use PCRegedit but while booting with it, it got stuck with error "Video is VIA Techonologies, Inc. UniChrome Pro IGP, using Xorg(via) Server", while starting tries to start PCRegedit's window. Looked to me like some compatibility issue here...?:sad:
Next I went on to follow the method 2. I checked the registry entry for Userinit and it seems to be correct as "C:\Windows\system32\userinit.exe,". Though I went to update to the same value, just in case it would make any difference:rolleyes:. When I did quit from the "Simple registry editor" and then chose to save the change it gave me message like "umount: cannot umount /disk: Divice or resources busy", but also showed ****EDIT COMPLETE *******.
Seeing the registry entry for Userinit, it seems to have no problem, in my case. Can someone suggest what could be other causes and possible remedy?
Thanks.
 
Last edited:
This fixes the problem:
I had another temp XP installation on drive E: and Start-Run-regedit-enter
then File-Load Hive browsed to C:drive
click on hive "software" in c:windows\system32\config
in affected machine then Unload hive

Using Regedit i changed the Userinit registry key at
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon to
"E:\Windows\Explorer.exe," and it logged in as normal
"C:\Windows\Explorer.exe," will work without E: drive

If Userinit registry key is missing it can created with regedit-menu- Edit-New- "string value" with Winlogon highlighted

I had already restored the registry to previous restore point using method http://support.microsoft.com/kb/307545
but this had not made any difference
 
Last edited:
Hi I have This problem and am in need of help

The computer affected is running windows xp home. The CD is on the drive. how do i run a reinstall for it?

Anyway so i tried method 2 got to the winlogon node but userinit was missing from the list of values.

So i figured ided use a xp pro cd i had to repair it but it asks for an admin password before it will repair and that PW is unknown. I would normally at this point just do a clean install but the cd is xp pro so how do i do a reinstall with a home cd that is located on the hd.

Also for method one can i hook up another computer to it via a network cat wire and will method 1 work without an admin PW but a login and PW for the sole account on the pc? and yes i have tried that pw for the recovery console
 
okay i got to the second step in method #2 but when i hit enter to confirm the windows/system32/config all that happens is that it says EXPAND [Ww] [Ii] [Nn] etc (it spells out windows/system32/config)
so what do i do now???
 
Yea i remember not having spybot really doing anything. Loged off 2 nights ago and next evening login...only to get LOGOFF...and it just soo happens that BOTH of our desktops no longer want to burn cds...So what do i do now?? couz the lovely pc retailers no longer give windows CDS...im guessin to save money of corse...
 
Im at the last step on 4 and when I try to rename software I get the error message " rename: not enough memory" please help!!
 
I couldn't login under any account. It
comes up to the applying user settings and just logs off.I've tried
safe mode and last known working configuration but they all lead to the
login screen, just a little something I can no longer do.... Yodama can u pls help me... i've lotoff imp files in my laptop....appreciate ur help..
 
Back
Top