Question Locked

can you use kixtart to edit registry files from dos

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am interested in repairing registry files from dos without booting windows. Is this possible with kixtart?

14 replies

by ---tk---

Look into UBCD, with "remote registry". Or some Linux Live CD's have "Wine" pre-installed... navigate to regedit.exe and do your thing...

by gkg44

Do you think this would work if I need to modify registry files on a windows version other than the one I am currently using?
The infected windows program is on C drive,
I am operating from windows reinstalled on D drive (XP Pro).
If I use the ubcd can I use it before I boot windows or before logon occurs?
Thanks Greg

by seanferd

You boot from the CD. What is on the CD will be your Operating Environment for the duration. This enables you to work on the Windows installation while it is not running.

by ---tk---

Well you might not need to do this... What virus do you have? There is probably an easier way of cleaning C:\...

by gkg44

You asked what kind of virus, it was some kind of trojan horse.
AVG removed it, I think but it damaged my urerinit file in winlogon. You can't log on.
I think the userinit file must be repaired with the correct values.
I have them but I can't get to it.
TK suggested I download the UBCD which I did and i found a registry edit tool. I just didn't know how to get to my file.
Greg

by seanferd

You need to use whatever tool on the CD that can load offline registry databases.

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit

C:\WINNT\system32\userinit.exe

(Of course, if your Windows directory is "Windows" change this accordingly.)

For future use and information, have a look at Autoruns (and a whole host of very interesting tools) from SysInternals.
http://technet.microsoft.com/en-us/sysinternals/bb545027.aspx

by gkg44

The prompt comes up to ask what is the path to the registry directory.
When I enter the path you described, it asks me again, indicating this was not the correct entry.
I am using the registry and password tool on UBCD.

by gkg44

to the question, what is the path to the registry directory (relative to windows disk) (WINDOWS/system32/config):

by ic-it

remote registry on the UBCD4Win.
You could also load the Hives you need from the D: install.
Open regedit.exe
Highlight My Computer
Menu bar - File
Import
Then navigate to the affected User profile in Docs& Settings\username\ntuser.dat
be sure to name it something unique, so as not to confuse it with the D drive Hives.
Then do the same with the keys provided by Seanford.

I would also run the Malwarebytes against that drive and combofix.

by ic-it

There is no number. Just import the hives as I described above.
When you load the HKLM from C name it something like C Drive HKLM.
When you load the Ntuser.dat file name it something like CDrive Betty.

The path to the users that gets loaded when they logon to the C: drive would be each users name in the documents and settings directory. Here is an example;

C:\Documents and Settings\Default User\ntuser.dat

Under a normal boot, it would show in the HKCU (Current User). That profile could also have a redirect of the userinit.exe file to something nasty like winlogon32.

I am not sure which way you are in now, but to answer another question the hives are normally kept in;

C:\WINDOWS\system32\config

They do not have file extensions.

by seanferd

Not sure which editor you are using, I'd go with IC-IT's suggestion.

But in the WINDOWS/system32/config directory, the file name you would load is "software".

This discussion is closed to new replies.