Justin Yee's Blog

Windows Logon -> logs me right off!

So you type in your windows username and password, click ‘Ok’, and yer ready to work… except when your computer logs you in – it immediately logs you off. nice. Here’s a fix that’ll get you through the Login/Logoff problem that plagues a lot off people (usually caused by the adware/spyware/virus varieties).

Short of someone jokingly putting a logoff script in the ‘Startup’ folder, the problem is most likely with your registry pointing to the incorrect file for logging on the system – Userinit.exe.  Many malware programs love to change this registry entry to a different file so you can’t clean your system, and it can happily use your bandwidth for other things.
This solution takes some confidence, and hopefully i’ve made it simple enough for anyone to follow. Skill level: 5.

Symptom: You log into Windows, and just when it looks like logs you in, the system logs you off.

Cause: Windows Userinit registry entry is changed from its default value.

You can edit the registry without going into Windows with a great program called NT Offline. This can also be used to reset any of your user account passwords too! :]

1) Burn a CD of NT Offline (you should be able to if you’re reading this and have this issue…)
http://pogostick.net/~pnh/ntpasswd/ > Bootdisk page > scroll down to ‘Download’
2) Boot off that CD, run through the prompts (the suggested options are noted after the prompted questions)
3) When you get the option of editing password, or other registry edit – select registry edit (option 9)
4) Similar to DOS you can navigate your way to the following location (ie ‘cd Microsoft’, remember its case sensitive):
\Microsoft\Windows NT\CurrentVersion\Winlogon
5) Type in ‘ed Userinit’ to edit the value of the Userinit key
6) NT Offline will spit out the current value of the key
7) Enter in the new value: C:\Windows\system32\userinit.exe
8 ) Enter ‘q’ to quit
9) NT Offline will ask you if you want to write the hive files, type ‘y’, enter
10) Reboot and pat yourself on the back


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: