My previous post say that “ Windows Automatically logoff after logon” . but it still not a good solution are encounter this problems even we have done the fresh windows installed !!!
what I suggest you to do is : PLEASE MAKE SURE YOU SCAN YOUR WHOLE HARD DRIVE WITH THE LATEST VIRUSES DEFINITION FILES. You can do this by taking off your hard drive and connect to another computer to scan OR please do not double click on any .exe files from other partitions after you reinstalled new windows.
So the problems is After you clean the viruses you won’t be able to log on to your windows desktop. I think here is the best ways to fix it:
Step 1: Create a BartPe Bootable CD
“ BartPE” (Bart Preinstalled Environment) is the bootable Windows CD-Rom or DVD from the original Windows XP that we can say Live CD that, very suitable for PC maintenance tasks.
To built it by ur selves please go to : http://www.nu2.nu/pebuilder/ to download the PeBuilder latest version and read the instruction to built your own bootable CD.
Step 2: Verifying and fixing the Userinit.ext
1. Insert the BartPE CD into the drive, and boot the system from the CD. Once the file loading phase is over, the Bart PE desktop will be visible.
2. Type Regedit.exe in the prompt, and press Enter. Select the HKEY_USERS hive

3. From the File menu, choose the Load Hive option. Browse to your Windows installation drive
C:\Windows\System32\Config\
4. Select the file named SOFTWARE (the file without any extensions), and click Open

5. Type a name for the hive that you’ve loaded now. (Example: MYHOUSE)
6. Now the SOFTWARE hive is loaded, and present under the HKEY_USERS base hive.
7. In order to fix the Userinit value in the loaded hive, navigate to the following location:
HKEY_USERS \ MYHOUSE\ Microsoft \ Windows NT \ CurrentVersion \ Winlogon
8. Double-click Userinit and set it’s value correctly. Example: Set it’s data as follows:
C:\Windows\System32\Userinit.exe,
Note: If there is no Userinit.exe existed on your system, Please use the windows CD to copy it back as my previous post said.
Good luck!






Hello….
Thank you very very soo soo soo much I appreciate this. Need ANYTHING shoot me an e-mail. I gotcha!
By the way it worked no problems everyone!
I’m so happy to see your word….:)
When I type in a key name(MYHOUSE) for the load hive, I get an error saying “ Cannot Load X:\I386\SYSTEM32\CONFIG\SOFTWARE
test
Excuse me for the previous post – that was a test with my understanding in Khmer language
Your blog is tremendous! Lots of helpful information.
I’m struggling now with that log in – log off loop and frankly it’s killing my nerves.
To start with this that the loop appeared when I cloned the system partition from an old hard drive to the new one. After the reboot the situation gone bad. It’s still booting from the old one, but that’s not the point. I followed all your steps (despite there were no signs of corrupted files or registry entries) but there was no real result. After long googling for same situations I found a topic that almost describe my condition – http://www.tomshardware.co.uk/forum/page-247118_14_0.html
It seems that for these 3 particular reasons the system is entering in such a loop:
quote:
- You cloned a bootable Windows partition from one physical disk to another
- The cloning program copied the partition only, and did not copy the MBR
- This Windows installation has seen the new drive before the clone, the disk was initialized, and a partition was created on it.
/quote
I made all of them. On the first run with Acronis True Image the result occurs – infinitive loop. After a few more tries I used Norton Ghost partition to partition option and it actually worked. I write this if someone has an identical problem.
PS. Please make attention over the fields where you used Khmer language – even google translate couldn’t help me understand what’s written
Once again – GREAT BLOG !
Thank
I would try to write my post in English that will be helpful for everyone …….
Oh my god that great solution i think. I always crazy with this problem b4 but now no fear at all thanks all. I so so appreciate u klang nas
.
Regards
nimol men