Raymond.CC Blog
  • Home
  • Forum
  • Giveaway
  • X-Ray 2.0
  • Contact
  • About
  • I’m Feeling Lucky
Search the site...
You are here: Home » Windows » 4 Ways to Edit Registry Key Values Without Booting into Windows

4 Ways to Edit Registry Key Values Without Booting into Windows

Updated by HAL9000 - 9 months ago - Windows
36
  • Like
  • +1
  • Tweet
  • Printer Friendly and PDF
edit registry icon

Many years ago when I was still a novice in computers, I accidentally disabled userinit.exe from startup thinking that it was spyware using the SysInternals tool Autoruns. When I restarted the computer, I was unable to login to Windows. Whenever I select the user from the list, it logged in and automatic logged off. I had a really tough time trying to restore userinit.exe back to the Windows startup list as it wasn’t easy accessing and editing the registry when Windows is unbootable. Autoruns is much smarter now because when you uncheck userinit.exe from Logon, it will warn you that “disabling or deleting Userinit will prevent users from logging on”.

In the end I managed to fix the problem but couldn’t exactly remember how I did it because I tried many many ways and I got lucky. I eventually found a real solution on how to edit Windows registry key values without booting into Windows. This is also useful for editing malicious startup items such as rogueware and ransomware. 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.

Listed here are 4 methods to edit the Windows registry keys using a bootable CD. Although you are being shown how to repair the userinit registry key, these methods can obviously be used for any other keys in the registry that need to be edited.

Method One

This first method uses a 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 CD. 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.

4. When everything is loaded, you will see a MyFileChooser Title window. By default you are at the Config folder. Scroll down a little, select SOFTWARE and click OK.

Edit registry without booting windows

5. Navigate to Root -> Microsoft -> Windows NT -> CurrentVersion -> Winlogon.

6. Look for the Userinit key and make sure that the value is set as:

C:\Windows\System32\Userinit.exe, (including the comma)

If the Userinit key is not there, you can add a new key by right clicking at the right pane and select Add Key.

EditDialog Title

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, Vista and 7, 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 or 7).


Method Two

This method involves using the popular Hiren’s Boot CD and its Mini Windows XP feature to edit the registry.

1. Download the Hiren’s Boot CD ISO.

2. Burn the downloaded Hirensbootcd.iso to a disc. Refer to this guide on how to burn ISO images on a CD.

3. Boot up the computer with the Hiren disc and and at the menu select “Mini Windows XP”.

4. When the Mini XP is loaded, click the Hiren menu icon in the tray -> Registry -> Registry Editor PE.

registry editor for PE

5. When asked to, set the remote Windows directory (usually C:\Windows) and press OK.

6. Click OK on each window to select the related registry hive. If you want to edit a registry value from HKEY_CURRENT_USER you will need to select Yes when asked if you want to load an NTUSER.DAT and locate the file in the user directory.

7. Expand HKEY_LOCAL_MACHINE and the hives will automatically load with the _REMOTE_ prefix. Navigate to _REMOTE_SOFTWARE -> Microsoft -> Windows NT -> CurrentVersion -> Winlogon

remote registry

8. Double-click Userinit and set it’s value to “C:\Windows\System32\Userinit.exe,”. Make sure you include the comma at the end after Userinit.exe, it is there by default.

Restore userinit

8. Close the registry editor and the hives will be automatically unloaded.

The 3rd and 4th method can be found on page 2.

  • < Prev
  • 1
  • 2
  • Next >


Didn't find what you want? The links below could help:

Comprehensive List of 26 Bootable Antivirus Rescue CDs for Offline ScanningComprehensive List of 26 Bootable Antivirus Rescue CDs for Offline ScanningRecover and Export Data from Offline Registry FilesRecover and Export Data from Offline Registry FilesEasily Reset Windows Settings to Default State with RefreshPCEasily Reset Windows Settings to Default State with RefreshPCRestore Windows Notepad to the Default Font or SettingsRestore Windows Notepad to the Default Font or Settings

36 comments on “4 Ways to Edit Registry Key Values Without Booting into Windows”

  1. RN says:
    5 months ago

    Thanks a lot

    Reply
  2. Joe says:
    6 months ago

    Thanks a lot!!!

    Reply
  3. Grateful says:
    8 months ago

    Awesome, thanks!

    Reply
  4. evan says:
    9 months ago

    thank you so much

    Reply
  5. Jamie says:
    10 months ago

    I had a problem was with the RPCSS not starting correctly on my laptop, this tool made it easy to rectify! Whoever made this is a genius.

    Reply
  6. Bob says:
    1 year ago

    A thousand thanks for the tutorial, I have use PCREGEDIT several times and it is great.

    Reply
  7. Greg A Bman says:
    1 year ago

    This post just saved my life. OK, maybe not my life, but a hell-of-a lot of trouble. Thanks!

    Reply
  8. Jim Budrakey says:
    1 year ago

    A thousand thanks for that, it saved my tail today.

    Reply
  9. yeah says:
    1 year ago

    you are so good, uhm, I like you!!!!!!!!!!!!!!!uhmmmmmmmmmooohhhhhhuhmohhhhh

    Reply
  10. bob says:
    2 years ago

    PC Regedit saved me big time! THanks Raymond!

    Reply
  11. man says:
    2 years ago

    hi
    thank soooooooooooo much
    it was great
    i suddenly deleted “userinit” key patch in registry and i couldn’t do anything
    i used hirens boot CD (mini windows xp) and edited my registry in the way u said
    again thanks so much

    Reply
  12. Maurizio says:
    2 years ago

    Thank you and Thank you agian Rayomd for this detailed explanation on how to use PCregedit to restore userinit; I have regain control of my pc after 5 hours of pure panic! Thaks also to the PCregedit team, wherever they are.
    This is an awesome page compared to dozens I have been through today.
    All the best!

    Reply
  13. Pablo Hemingway says:
    2 years ago

    This really worked for me. I used Bart PE to access the registry edit. I have spent days over the last few weeks trying to solve this problem and this finally did it. It was due to a virus either w32silly – forever.exe or music.exe which came onto the computer via an infected USB memory stick. I was aware that the userinit.exe file was the problem but the other solutions suggested elsewhere never worked (perhaps it was the comma at the end?) Thanks very much.

    Reply
  14. Shea says:
    3 years ago

    Thanks a million Raymond, you’ve saved me a LOAD of work with this tutorial! Awesome work and highly appreciated. Highly!!

    Reply
  15. Cesar says:
    3 years ago

    U are a genious!!! Thank u so much!!

    Reply
  16. Mark S says:
    3 years ago

    Login Logoff Loop no more. What a great post, easy to follow Deliastyle walkthrough. Thank you.

    Reply
  17. Steve says:
    3 years ago

    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.

    Reply
  18. Thom says:
    3 years ago

    Many thanks to you and the author of PCRegedit, this saved me.

    Reply
  19. Aslam says:
    3 years ago

    Nice to know have software like this.

    Reply
  20. Computer Doc says:
    3 years ago

    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!

    Reply
  21. cangwadi says:
    3 years ago

    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.

    Reply
  22. Furqon says:
    3 years ago

    wow, that’s perfectly works! thank you so much!

    Reply
  23. leewind says:
    4 years ago

    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..

    Reply
  24. Richard McCready says:
    4 years ago

    Wow, thanks you saved my wifes laptop.
    Thanks again!!!!!!!!!

    Reply
  25. Erich Frerking says:
    4 years ago

    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

    Reply
  26. Gjergji Kokushta says:
    4 years ago

    Thank you, very good work. I followed the second option downloding PCRegEdit.iso
    It worked just fine.

    Reply
  27. Lucy says:
    4 years ago

    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!

    Reply
  28. mauricio says:
    4 years ago

    Hello. Thank you for your help and guidelines.

    Reply
  29. clic says:
    4 years ago

    Raymond thanks for tutorial ;)

    Reply
  30. Michael C. says:
    4 years ago

    Thanks Ray. I once had the same problem a few weeks ago and it really bugged me till I got BartPE. It works too.

    Reply
  31. mbah gendeng says:
    4 years ago

    hmm good tutor thanks i like it

    Reply
  32. Roy Raay says:
    4 years ago

    Thanks mate, wonderful tip and nicely written tutorial, cheers!

    Reply
  33. Lilliput says:
    4 years ago

    Hey Ray,
    Another good tip. Thanks man, you are awesome.

    Reply
  34. webcadre says:
    4 years ago

    nice tutorials thanks ray!

    Reply
  35. Ammar says:
    4 years ago

    Thanks Raymond.

    Reply
  36. hardik says:
    4 years ago

    thanks for the wonderful tips.
    Anyways thanks and cheers :)

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recently Updated

  • sniff hidden url

    5 Simple Tools to Display Hidden Remote URLs in Background or Web Installers

  • uac icon

    4 Ways to Disable User Account Control (UAC) for Specific Software in Windows

  • scan shared folder icon

    5 Tools to Scan Connected Computers on the Local Network and Find Shared Folders

New Articles

  • task manager replacement icon

    Memory Usage Test to See Which is the Lightest Antivirus Software

  • kaspersky antivirus 2013 icon

    Activate Free Kaspersky Anti-Virus 2013 ROG with 1 Year License

  • remote access software

    Top 8 Remote Access Software for Providing Online Support

Popular Posts

  • Top 10 FREE Data Recovery Software

    Top 10 FREE Data Recovery Software

  • How to Hack Into a Windows XP Computer Without Changing Password

    How to Hack Into a Windows XP Computer Without Changing Password

  • 10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

    10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

Recommend on Google
Follow @raymond_cc
Subscribe Youtube »
(c) 2013 Raymond.CC Blog
  • Contact
  • Disclaimer
  • Disclosure
  • Privacy Policy
  • Terms of Use
  • Sitemap