<p><a href="http://wincert.net/wp-content/uploads/2015/01/windows-xp2.jpg"><img class="alignnone size-full wp-image-553" src="http://wincert.net/wp-content/uploads/2015/01/windows-xp2.jpg" alt="windows-xp2 box,access,computer,blue screen,ctrl alt delete" width="720" height="340" /></a></p>
<p>When you try to login to your Windows XP system, you may be automatically logged off. You can&#8217;t also login using the safe mode. This is an obvious logoff problem with your <span style="color: #333399;">userinit.exe </span>file which is responsible for user login process.</p>
<p>Your userinit.exe files has been corrupted or damaged by spyware application &#8216;Search Assistant&#8217; which is usually located at C:\Program Files\WindowsSA&#8217;. Search assistant has also some &#8216;omni*&#8217; files in <strong>%SystemDirectory%\system32</strong> directory which are linked with userinit.exe. Once you remove these files with your antispy or antivirus application, you cannnot login afterwards.<!--more--></p>
<p><span style="color: #008000;">Solution:</span></p>
<p>To be able to restore the missing/corrupted/damaged <span style="color: #003366;">userinit.exe</span> file you should use the Windows XP recovery console.</p>
<p>If you&#8217;re unfamiliar with the recovery console usage, please check this KB article <a href="http://support.microsoft.com/kb/307654" target="_blank">HERE</a>.</p>
<p>You can also use another machine to connect to another PC over the network.</p>
<p><span style="color: #003366;">Open Regedit | File | Connect Network Registry | </span>enter the name or IP address of the problematic machine.</p>
<p>Once you&#8217;ve gained access to the registry, please do the following:</p>
<p>Navigate to:<span style="color: #003366;"> &#8216;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&#8217;</span></p>
<p>If there is a key named <span style="color: #003366;">&#8216;OldUserinit&#8217;</span>, delete the &#8216;Userinit&#8217; key and rename the <span style="color: #003366;">&#8216;OldUserinit&#8217; </span>key to<span style="color: #003366;"> &#8216;Userinit&#8217;</span></p>
<p>The &#8216;Userinit&#8217; key should now say <span style="color: #003366;">&#8216;WINDOWS_PATH\system32\userinit.exe&#8217;</span></p>
<p><span style="color: #003366;">&#8216;WINDOWS_PATH&#8217;</span> is variable to your Windows installation directory.<br />
Usually it is <span style="color: #003366;">&#8216;C:\WINDOWS\system32\userinit.exe&#8217;</span></p>