How to modify registry without logging in into Windows XP

G

Guest

I uses sony vaio notebook with Windows XP Home Edition SP2.
Sony vaio notebook does not support floppy disk.

By chance I commented the key of "Userinit" at
/HKLM/SOFTWARE/Microsoft/Windos NT/CurrentVersion/Winlogon/
from "C:\windows\system32\userinit.exe" to "rem
C:\windows\system32\userinit.exe".
Now I can not log in windows with any account even in safe-mode.

I want to change the registry on Recovery Console by the command of
C:\windows\system32\reg.exe. But it is not permitted under that mode.

What can I do then?
 
K

Kelly

Recovering XP using the Recover Console (Line 333) Right hand side:
http://www.kellys-korner-xp.com/xp_tweaks.htm

The problem can be fixed by:

1) booting to a Recovery Console,
2) changing directory to C:\WINDOWS\System32, and
3) copying userinit.exe to wsaupdater.exe (there was no wsaupdater.exe
present).
4) rebooted into Safe mode and successfully logged-on as Adminstrator
5) edit the registry and change userinit in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon from "wsaupdater.exe," to "userinit.exe,";
6) final reboot and back to normal!

Added info and checkpoints:

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.

In the right pane under Userinit, Change the key to read:
C:\Windows\System32\Userinit.exe,

However, in order to check this, you will need to slave your hard drive to
another system, then modify your hive.

From an account with Administrator level access

1) Click Start, Run and enter REGEDIT
2) In Regedit, highlight the HKEY_USERS key and go to File, Load Hive.
3) Use the File Open dialog to go to the Documents and Settings\<username>
folder, where <username> is the account you wish to modify.
4) Highlight the NTUSER.DAT file in this folder (usually a hidden file) and
select Open.
5) You'll be prompted to enter a "Key name". You can use whatever you wish,
but I use the User's logon name.
6) You can now expand the Hive you just loaded and make any needed changes.
7) When finished, highlight this Hive again and go to File, Unload Hive.

NOTE: You MUST unload the Hive prior to logging on to the users account.
Otherwise XP may have trouble loading the user's profile.


Other than the above, if Windows is installed on C:\, I have an automated
edit on line 255 (right hand side) ignore the name:
http://www.kellys-korner-xp.com/xp_tweaks.htm

--
All the Best,
Kelly (MS-MVP)

Troubleshooting Windows XP
http://www.kellys-korner-xp.com
 
J

Junxiu Lee

You can modify the registry with a startup disk,for example,BartPE startup
disk.It contains the "PE registry editor" which can modify the
"Classes_Root" and "Local_Machine" branches of the registry.

--
Regards,
Junxiu Lee
http://blog.mvpcn.net/junx_lee/

This posting is provided "AS IS" with no warranties.
Please respond to newsgroups only ...
 
R

Ramesh [MVP]

Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD:
http://www.nu2.nu/pebuilder/

-or-

Slave the drive to another XP system, then load the SOFTWARE hive using this method:
http://www.dougknox.com/xp/tips/xp_adv_reg_editing.htm
NOTE: In step 4 in the above link, locate the SOFTWARE hive (present in folder c:\windows\system32\config) and select Open.

Fix the Userinit value, and then unload the SOFTWARE hive.


In future, make a backup before making major changes to the registry

ERUNT and NTREGOPT:
http://home.t-online.de/home/lars.hederer/erunt/


--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


I uses sony vaio notebook with Windows XP Home Edition SP2.
Sony vaio notebook does not support floppy disk.

By chance I commented the key of "Userinit" at
/HKLM/SOFTWARE/Microsoft/Windos NT/CurrentVersion/Winlogon/
from "C:\windows\system32\userinit.exe" to "rem
C:\windows\system32\userinit.exe".
Now I can not log in windows with any account even in safe-mode.

I want to change the registry on Recovery Console by the command of
C:\windows\system32\reg.exe. But it is not permitted under that mode.

What can I do then?
 
G

Guest

Thank Kelly.
However the problem I ï½ï½ã€€ï½ƒï½ï½Žï½†ï½’ï½ï½Žï½”ing ï½ï½†ã€€ï½‰ï½“ nï½ï½” the sï½ï½ï½… ï½ï½“ this ï½ï½Žï½….
I did cï½ï½™ã€€ï½•ï½“erinit.exe tï½ã€€ï½“ï½—ï½ï½•ï½ï½„ï½ï½”er.exe but it did nï½ï½” wï½ï½’k.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top