2 Jul
In the end I managed to fix the problem but I couldn’t exactly remember how I did it because I tried many many ways and I got lucky. Today I found a real solution on how to edit Windows registry key values without booting in Windows. If you have a similar situation as my previous case which requires you to edit the registry without Windows, then here is how to do it.
I currently know of 2 ways to do it. One is the easier way and the other way is a longer and more troublesome way. Both requires booting up the computer using CD.
I will first explain the tougher method on how to access registry without booting in to Windows using UBCD4Win. I’ve previously written a guide on how to create a UBCD4Win CD. Once you have the CD created, just follow the few simple steps below.
1. Boot up computer with UBCD4Win.
2. Once Ultimate Boot CD 4 Windows is fully loaded, click Start > Programs > Registry Tools > RegEdit

3. Select HKEY_USERS
4. Click File from menu bar and select Load Hive
5. Browse to C:\Windows\System32\Config\ and select SOFTWARE. Make sure that it is C:\ and not X:\ drive, otherwise you’ll be loading the CD’s registry.
6. Enter the Key Name as NEWHIVE.

7. Expand HKEY_USERS and you’ll see a newly created NEWHIVE in the list. Expand the NEWHIVE and locate the following location.
HKEY_USERS > NEWHIVE > Microsoft > Windows NT > CurrentVersion > Winlogon
8. Double-click Userinit and set it’s value correctly such as C:\Windows\System32\Userinit.exe,

Important Note: Make sure you include the comma at the end after Userinit.exe. It is there by default.
9. Go back to HKEY_USERS and select NEWHIVE.
10. Click File from menu bar and select Unload Hive. Click Yes when asked if you are sure you want to unload the current key and all of its subkeys.
If you already have UBCD4Win created, the whole process is much faster. However, I understand that not everyone has Windows XP disc on hand. So here’s another great free tool called PC Regedit which lets you create, delete and edit Windows registry key-values without Windows.
1. Download PC Regedit
2. Burn the downloaded PCRegedit.iso to a disc. Refer to this guide on how to burn ISO images on a CD.
3. Boot up the computer with the PC Regedit disc and it will load up ISOLINUX 3.11.
4. When everything is loaded, you will see a MyFileChoose Title window. By default you are at config folder. Scroll down a little, select SOFTWARE and click OK.

5. Navigate to root > Microsoft > Windows NT > CurrentVersion > Winlogon.
6. Look for Userinit key and make sure that the value is set as C:\Windows\System32\Userinit.exe, If the Userinit key is not there, you can add a new key by right clicking at the right pane and select Add Key.
You can use this method to load up other registry files and edit them. Here are the explanation of the 5 registry files for HKEY_LOCAL_MACHINE.
Registry Location: HKEY_LOCAL_MACHINE\SOFTWARE
File: SOFTWARE
Backup: SOFTWARE.LOG
Registry Location: HKEY_LOCAL_MACHINE\SECURITY
File: SECURITY
Backup: SECURITY.LOG
Registry Location: HKEY_LOCAL_MACHINE\SYSTEM
File: SYSTEM
Backup: SYSTEM.LOG
Registry Location: HKEY_LOCAL_MACHINE\SAM
File: SAM
Backup: SAM.LOG
Registry Location: HKEY_CURRENT_USER
File: NTUSER.DAT
Backup: ntuser.dat.LOG
Registry Location: HKEY_USERS\.DEFAULT
File: DEFAULT
Backup: DEFAULT.LOG
On Windows-NT based systems such as Windows NT, 2000, XP and Vista, each user’s settings are stored in their own files called NTUSER.DAT and USRCLASS.DAT inside their own Documents and Settings subfolder (or their own Users subfolder in Windows Vista). For example, C:\Documents and Settings\Raymond\NTUSER.DAT.
Technorati Tags: registry, edit, windows, ubcd4win, pcregistry
: Copying this article to your website is strictly NOT allowed. However, if you like this article, you can use the HTML code below to directly link to this article.
Hack to turn your Windows Home Edition CD into Professional Edition Full Control Permission to Delete or Edit Restricted Windows Registry Restore Internet Connection by Repairing Winsock and TCP Fix Internet Explorer RunOnce2.aspx Customize Your Settings Problem Editing URLs at Internet Explorer Address Bar History How to Dual Boot XP and Vista with XP Installed First Edit Vista and XP File Types Association To Easily Compress PNG Image Files
Have computer technical problems? Get FREE help from Raymond.CC FORUM
31 Responses for "How To Edit Windows Registry Key Values without Booting in Windows"
thanks for the wonderful tips. I don’t want to be bugging you but I did explain why I wanted to download the site and there’s no reply yet. If you’re not fine with it just tell me NO and I will not ask u again.
Anyways thanks and cheers
Bye
Thanks Raymond.
MiniPE is also a choice.
It has Avast! Registry Editor.
If you chose the program RegEdit(remote), this is the next line on the menu, it will auto load the hives
nice tutorials thanks ray!
Hey Ray,
Another good tip. Thanks man, you are awesome.
I’ve tried a prog “Reimage”. It offered boot CD similar to Knoppix or UBCD4Win.. Its not bad too.
Thanx so much Raymond for this tip. Btw based on all my personal experience, in most of cases you dont have to reboot after editing Windows registry. Just log off then log on or sometimes (in some other cases) restart explorer.exe (by using task manager) is surely enough as well. however they all require administrator account/previlege. Anyway, thx again.
Thanks mate, wonderful tip and nicely written tutorial, cheers!
hmm good tutor thanks i like it
Thanks Ray. I once had the same problem a few weeks ago and it really bugged me till I got BartPE. It works too.
Dios te bendiga grandemente por tu aporte!!! me has salvado de una que no te imaginas…. mil gracias!!! Use el PC Regedit y me fue de maravilla!!!
Hi, I’ve been trying to rid my machine of a trojan horse, and your tip sounds like it might work. But, after following your steps to use PC Regedit, couldn’t get the disk to boot in my Vista tablet. I received the following error:
!!Invalid loop location: /root.dat
!!Please export LOOP with a valid location, or reboot and pass a proper loop=…
!!kernal command line!
Any ideas on why this won’t work on my machine? Any tips would be much appreciated.
path to download pc regedit
http://www.pcdisktools.com/download/freeware/01PCRegedit.iso
@Raimond tnx for tutorial
Hello , Firstable , thank you for your help and guidelines,
today I need to communicate you that your links values without Windows.
1. Download PC Regedit
2. Burn the downloaded PCRegedit.iso to a disc. Refer to this guide on how to burn ISO images on a CD.
on this current site dont work, everytimes I click them I get <> ..
Thnk you so much, Goood day..
Thanks! You just saved my computer! I had a virus and was a bit too zealous in cleaning it out, messed with something in Hijackthis, and got caught in an endless logon/logoff loop. NOTHING worked, and I was ready to do system restore and just start over. Then I landed on this page and, seriously, a few minutes later my computer was back in working order. You rock!
Thank you, very good work. I followed the second option downloding PCRegEdit.iso
It worked just fine.
Man,
You really saved my bacon with this fix – many, many thanks. There were two things that I had to do a bit differently, though (I used the PC Regedit fix for my situation).
1) Even though I couldn’t logon, Windows did attempt to start so I went into the BIOS setup to disable the A: drive and HDD, forcing the CD drive to be seen.
2) After navigating to the offending key, I had to edit the key instead of adding a key.
Other than that, your fix worked perfectly and, again, many thanks.
Erich Frerking
hey raymond.if i don’t know the logon password for windows can i still use this method?[like "CD-konboot-v1.1-2in1"] please tell me?
I have same problem and trying to do the same but without anything u mentioned as i have a dual boot system and i can boot from other one that i used for general purpose for all user and quick load.
the main booter is having problem with msg that awgina.dll is missing from system32 on normal boot and the option this msg gives is only to restart. on restart of safe mode, it is auto logoff quickly as u discussed.
now using second boot i used some s/w that read the ntuser.dat file and open it in regedit, i verified that the path are there that u r told to add there. so dont sure what is the problem then. btw, i have not installed pcanywhere that the cause is given for awgina.dll to replace msgina.dll. i have both of these dll in system 32. i tried to rename the awgina.dll , from second boot, and try to boot again but the problem persist.
so not sure what is the problem that looks similar to this but the solution is not working. the final thing to update the registry that i done also.
any idea???
Wow, thanks you saved my wifes laptop.
Had to change the BIOS setup as well to read the cd drive first.
Thanks again!!!!!!!!!
Hello Raymond, I had a similar problem with you. The problem with my case is my useinit file was infected with a virus still can’t figure out yet. Realising my userinit.exe file was infected (through virus scan), i simply disable the userinit entry in Autorun.exe (by sysinternals) and wasn’t too care about what the dialog box was talking about. Simply clicked Ok, then the next time i restarted my PC, the infinite logon-logoff loop strike me.
Through my other PC i manage to Google this page. Man, what you’ve done is what we as PC not-so-expert user commend. Thanks bro! You really saved millions others who are careless enough to mess with their useinit.exe entries in the registry. Hehehe.. Cheers..
wow, that’s perfectly works! thank you so much!
Thanks bro. Your tutorial has save my wifes laptop. I use PC Regedit and burn it into a cd. Then i follow your instruction. Thanks once again.
Thanks for posting this. I have been working on computers for 9 yrs. and this is the first time I saw the logon loop issue. My client and I thank you!
Nice to know have software like this, however is tere any way to do it with out having any third party softawres and use any built any commands in windows?
Many thanks to you and the author of PCRegedit, this saved me.
Hi Raymond,
I am also a victim of the login logoff loop victim on my xp home edition hp laptop. I did try your ISOLINUX option. My CD ROM is getting recognized at the time of boot. But it gets hung at one point with a message “Uncompressing Linux…..ok. booting the kernel. After this step nothing comes up and in few minutes my windows again goes back to boot mode. The MyFilechoose title window is not at all poping up. Any suggestions would be appreciated.
Many thanks Raymond – this link was a great find. I have never seen this problem before & I have been working in IT for many years. I tried numerous things but continued to scratch my head for two weeks before finding this article. It thankfully saved me from the time consuming PC rebuild, which I was beginning to think was my only option – well done for producing a great fix.
I tried PCRegedit linux live CD, it uncompress and load fine, then it shut itself down and unload so I’m also in a live cd on-off loop now!
Login Logoff Loop no more. What a great post, easy to follow Deliastyle walkthrough. Thank you.
U are a genious!!! Thank u so much!!
Leave a reply