Help - Search - Members - Calendar
Full Version: Windows 2000 Registry Repair Utility Plugin
The CD Forum > Bart's PE Builder > Plugins
Troglodyte
I have been wanting to add this to my multiboot CD for a while now, but I thought that it would be time consuming and some what difficult... thanks to this guide it was much easier than I thought it would be...

Now I don't have to carry around those 6 floppy disks.... that are oh so slow... and prone to corruption.

Now that I have done this, I would like to share the completed plug-in in with the rest of you...

Note: I tried to compile this into an .ISO in the hopes that the new version of Bootable CD Wizard (v2.0a1)... would boot it, but it doesn't seem to like these sorts of .ISOs (the same with the recovery console .ISO)... instead of booting to the utility / recovery console, it would load the bootsector of the entire CD and ask if you wanted to boot from the CD again (sending you in a loop back to the menu).

Anyway, this is no big deal... I was just hoping to clean up my directory a bit and hide some files... besides it works fine with out compiling it to an .ISO...
but if anyone finds out how to boot an ISO from a menu with this on it... let me know...

Here is some example code that will boot the utility:

bcdwdemo.cs
CODE
i05_go:
bcdw SetTextVideoMode
show console
print "\n"
print "Microsoft Windows 2000 Registry Repair Utility...\n"
bcdw Boot \CKRG\setupldr.bin
goto ixx_go_err


Grab it here

NOTE: Yes, you will need 7-zip to unarchive the .7z file.
d4vr0s
Very interesting. It appears to be a recovery console layout with spcmdcon.sys changed and chkreg.exe added.
I'll have to experiment with this. biggrin.gif
Troglodyte
QUOTE
It appears to be a recovery console layout with spcmdcon.sys changed and chkreg.exe added.
Yes... that's exactly what it is.

QUOTE
I'll have to experiment with this


Have fun smile.gif
d4vr0s
Have you used this successfully with XP? smile.gif
Troglodyte
QUOTE
Have you used this successfully with XP?


Well... it depends on your definition of successfully... it does run, and I can tell that it is processing the registry... However, I have not encountered any computer that this has saved from a disaster as of yet... Most of the time if I encounter a computer with a corrupted registry... it generates that "Error in CurrentControlSet" or something and will not boot into Windows... everytime I tried this utility on a computer that was like that it did not help the situation... instead I use BartPE and the Registry Restore Wizard created by Viceroy to restore a backup (if one is present)...

So, I really don't know a whole heck of a lot about this utility or exactly what its doing to fix "errors"... I would like to know but I don't...

Either way... when ever I encounter a computer that has a similiar registry problem... I try this first (usually after a CHKDSK from the recovery console)... and I'm still waiting for an opportunity for it to show its worthiness tongue.gif

So, for now, lets just say that it won't make a situation worse than it is... on either XP or 2000... it may even work with 2003... (haven't tried it yet)...

But what it does... nobody knows tongue.gif
d4vr0s
Same here with vireroy's utility. I've added it to my layout.
What I've done is just copy those 2 files to a copy of my command console (Thank goodness for -duplicates-once in cdrecord from http://cdrtools.bootcd.ru/)
It's only added about 60K to my image size. tongue.gif
Troglodyte
QUOTE
Thank goodness for -duplicates-once in cdrecord


Yeah... I still have to get around to using that...
MaloK
i have succesfully repaired win2k and winXP computer with it several times.....

if you want to download the already made iso i have click HERE!

HTH
d4vr0s
@MaloK
Thanks for the input, glad to hear it works on XP smile.gif
Troglodyte
@MaloK

QUOTE
if you want to download the already made iso i have click HERE!


Have you been able to boot your .ISO from BCDW 2.0a1?
MaloK
No this iso is plain and simple made exactly from the instruction provided by jayroos.com i did'nt play with BCDW a while now.
solara
Can this only be run from its own console from a multiboot CD?

Any way to make it part of the PE environment?
Troglodyte
@solara

QUOTE
Any way to make it part of the PE environment?
QUOTE
I also tried adding it to a Bart's PE-Builder CD but it didn't want to run there either.


Quote from jayroos.com.

So it doesn't look like it...

But your welcome to try.. it may be impossible or very difficult... who knows :/
d4vr0s
I tried it in a command window. This is the error message:
CODE
The CHKREG.EXE application cannot be run in Win32 mode.

Something ventured, nothing gained tongue.gif
Troglodyte
QUOTE
Something ventured, nothing gained


Ha... that's a good saying... you should put it in your sig or something... applies to a lot of things in life tongue.gif

Hey... at least you gave it a shot smile.gif
d4vr0s
Here's a plugin using my command console plugin as a base and copying the appropriate files from the Windows 2000 Registry Repair Utility
1) Download ChkReg.EXE from the above site.
2) make a plugin folder with a subfolder called files
3) extract SPCMDCON.SYS and chkreg.exe to the files subfolder
4) You will either have to hit 'R' for recovery console when it boots or hit F10 when prompted to hit F6
5) I suggest using bcdw 2.0a1 to boot this as it does not require hex editting any files.
The command for bcdw would be
CODE
\chkr\setupldr.bin; Windows Registry Repair Utility

or for the cd shell module
CODE
bcdw boot \chkr\setupldr.bin

chkreg.inf
CODE
; Windows 2000 Registry Repair Utility
; Created by d4vr0s
; Get chkreg.exe from from http://www.microsoft.com/downloads/details.aspx?FamilyID=56d3c201-2c68-4de8-9229-ca494362419c&DisplayLang=en

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Registry Repair Utility"
Enable=1

[WinntDirectories]
a="CHKR",2
b="CHKR\SYSTEM32",2

[SourceDisksFiles]
;Files from chkreg.exe
files\chkreg.exe=a,,1
files\spcmdcon.sys=a,,1
; recovery console files
; Thanks to cdob for the @SourcePath@ syntax
@SourcePath@I386\SETUPREG.HIV=a,,4
@SourcePath@I386\SYSTEM32\SMSS.EXE=b,,4
@SourcePath@I386\TXTSETUP.SIF=a,,4
SETUPLDR.BIN=a
ntdetect.com=a
kdcom.dl_=a,,2
hal.dl_=a,,2
halaacpi.dl_=a,,2
halacpi.dl_=a,,2
kd1394.dl_=a,,2
halapic.dl_=a,,2
bootvid.dl_=a,,2
;KBDTUF.DLL=a; Turkish
;KBDSW.DLL=a; Swedish
;KBDSP.DLL=a; Spanish
;KBDTUQ.DLL=a; Turkish Q
;KBDSL1.DLL=a; Slovak-QWERTY
;KBDSL.DLL=a;    Slovak
;KBDSG.DLL=a;    Swiss German
;KBDSF.DLL=a;    Swiss French
;KBDUK.DLL=a; United Kingdom
;KBDRU.DLL=a;    Russian
;KBDRO.DLL=a;    Romanian
;KBDPO.DLL=a; Portuguese
;KBDPL1.DLL=a; Polish Programmer's
;KBDPL.DLL=a;    Polish
;KBDNO.DLL=a; Norwegian
;KBDNE.DLL=a; Dutch
;KBDUR.DLL=a; Ukrainian
KBDUS.DLL=a    ; United States
;KBDUSL.DLL=a; Dvorak Left-Hand US
;KBDUSR.DLL=a; Dvorak Right-Hand US
;KBDLV1.DLL=a; Latvia-QWERTY
;KBDLV.DLL=a; Latvia
;KBDLT.DLL=a; Lithuania
;KBDLA.DLL=a; Latin-America Spanish
;KBDIT142.DLL=a; Italian 142
;KBDIT.DLL=a; Italian
;KBDIR.DLL=a; Irish
;KBDIC.DLL=a; Icelandic
;KBDHU1.DLL=a; Hungarian 101
KBDUSX.DLL=a; US Multinational
;KBDYCC.DLL=a; Serbian_Cyrillic
;KBDYCL.DLL=a; Serbian_Latin
;KBDRU1.DLL=a; Russian Typewritter
;KBDHU.DLL=a; Hungarian
;KBDHELA3.DLL=a; Greek IBM 319 Latin
;KBDHELA2.DLL=a; Greek IBM 220 Latin
;KBDHE319.DLL=a; Greek IBM 319
;KBDHE220.DLL=a; Greek IBM 220
;KBDHE.DLL=a; Greek
;KBDGR1.DLL=a; German IBM
;KBDGR.DLL=a; German
;KBDGKL.DLL=a;    Greek_Latin
;KBDFR.DLL=a; French
;KBDAL.DLL=a; Albania
;KBDBE.DLL=a; Belgian
;KBDBLR.DLL=a; Belarusian
;KBDBR.DLL=a; Brazilian
;KBDBU.DLL=a; Bulgarian
;KBDCA.DLL=a; Canadian Multilingual
;KBDFI.DLL=a; Finnish
;KBDCR.DLL=a; Croatian/Slovenian
;KBDCZ.DLL=a; Czech
;KBDCZ1.DLL=a; Czech 101
;KBDDA.DLL=a; Danish
;KBDDV.DLL=a; Dvorak US English
;KBDES.DLL=a; Spanish Alernate (Spelled how it was in PE header)
;KBDEST.DLL=a; Estonia
;KBDFC.DLL=a; Canadian French
ntkrnlmp.ex_=a,,2
autofmt.exe=a
autochk.exe=a
vgaoem.fo_=a,,2
biosinfo.inf=a
l_intl.nl_=a,,2
c_1252.nl_=a,,2
c_437.nl_=a,,2
drvmain.sdb=a
hidclass.sy_=a,,2
ftdisk.sy_=a,,2
flpydisk.sy_=a,,2
fdc.sy_=a,,2
fastfat.sy_=a,,2
kbdhid.sy_=a,,2
dpti2o.sy_=a,,2
dmload.sy_=a,,2
dmio.sy_=a,,2
dmboot.sy_=a,,2
disk.sy_=a,,2
dac960nt.sy_=a,,2
dac2w2k.sy_=a,,2
hidparse.sy_=a,,2
hidusb.sy_=a,,2
cpqarray.sy_=a,,2
cmdide.sy_=a,,2
classpnp.sy_=a,,2
cdrom.sy_=a,,2
cdfs.sy_=a,,2
cd20xrnt.sy_=a,,2
cbidf2k.sy_=a,,2
hpn.sy_=a,,2
i2omgmt.sy_=a,,2
i2omp.sy_=a,,2
atapi.sy_=a,,2
asc3550.sy_=a,,2
asc3350p.sy_=a,,2
asc.sy_=a,,2
i8042prt.sy_=a,,2
aliide.sy_=a,,2
aic78xx.sy_=a,,2
aic78u2.sy_=a,,2
aha154x.sy_=a,,2
adpu160m.sy_=a,,2
acpiec.sy_=a,,2
videoprt.sy_=a,,2
lbrtfdc.sy_=a,,2
ini910u.sy_=a,,2
mountmgr.sy_=a,,2
mraid35x.sy_=a,,2
acpi.sy_=a,,2
viaide.sy_=a,,2
intelide.sy_=a,,2
ohci1394.sy_=a,,2
oprghdlr.sy_=a,,2
partmgr.sy_=a,,2
pci.sy_=a,,2
pciide.sy_=a,,2
pciidex.sy_=a,,2
pcmcia.sy_=a,,2
perc2.sy_=a,,2
perc2hib.sy_=a,,2
ql1080.sy_=a,,2
ql10wnt.sy_=a,,2
ql12160.sy_=a,,2
ql1240.sy_=a,,2
ql1280.sy_=a,,2
ramdisk.sy_=a,,2
sbp2port.sy_=a,,2
scsiport.sy_=a,,2
serenum.sy_=a,,2
serial.sy_=a,,2
setupdd.sy_=a,,2
abp480n5.sy_=a,,2
isapnp.sy_=a,,2
sfloppy.sy_=a,,2
sparrow.sy_=a,,2
amsint.sy_=a,,2
spddlang.sy_=a,,2
symc810.sy_=a,,2
symc8xx.sy_=a,,2
sym_hi.sy_=a,,2
sym_u3.sy_=a,,2
1394bus.sy_=a,,2
tffsport.sy_=a,,2
toside.sy_=a,,2
kbdclass.sy_=a,,2
ultra.sy_=a,,2
usbccgp.sy_=a,,2
usbd.sy_=a,,2
usbehci.sy_=a,,2
usbhub.sy_=a,,2
usbohci.sy_=a,,2
usbport.sy_=a,,2
usbstor.sy_=a,,2
usbuhci.sy_=a,,2
vga.sy_=a,,2
wmilib.sy_=a,,2
ksecdd.sys=a
ntfs.sys=a
ntdll.dll=b
d4vr0s
As with the Recovery Console plugin I modified this to only copy the US keyboard layout.
Added descriptions for the other layouts, uncomment the ones you need. smile.gif
Zaranthos
Anyone have this on a working CD? I'd like to get an ISO to try chkreg.exe on an XP computer I have that has registry problems and won't boot. Pretty much all the links in this thread are no longer working.
jaclaz
QUOTE (Zaranthos @ Jan 6 2011, 03:52 PM) *
Anyone have this on a working CD? I'd like to get an ISO to try chkreg.exe on an XP computer I have that has registry problems and won't boot. Pretty much all the links in this thread are no longer working.


Courtesy of the Wayback Machine:
http://web.archive.org/web/20070416212104r...ootable-CD.html

CHKREG is still available from MS:
http://www.microsoft.com/downloads/en/deta...;DisplayLang=en

If you want to make a Recovery Console CD, or USB stick, we have "better" ways:
http://reboot.pro/2254/
http://reboot.pro/5316/

The install.cmd inside CHKREG.EXE (not the actual CHKREG.EXE program, the CJKREG.EXE you download from MS) talks about XP SP1:
CODE
echo ****************************************************
echo This program modifies Microsoft Windows XP SP1 Setup
echo Disk #6 to launch the Microsoft Windows 2000
echo registry repair utility.
echo.
echo To create this disk, you will need to provide
echo Windows XP SP1 Setup Disk #6. If you have not
echo created the set of disks yet, you will need to visit
echo the following URL and create the boot disks using 6  
echo blank high-density disks.
echo.
echo http://support.microsoft.com/?id=310994
echo.
echo Please put Windows XP SP1 Setup Disk #6 into drive A:


Thus you can use with the given links this:
http://www.microsoft.com/downloads/details...C2-631504EF5E26
(cannot say of it will work with SP2)

jaclaz
Zaranthos
Good links. But so far I haven't gotten a working bootable CD. Looks like Ultra ISO might be breaking the CD image when I try to modify the contents.

Edit: Looks like it's not Ultra ISO that's breaking it. Probably not working because I'm making it from XP SP3. Time to install VMWare and SP1 I guess.
jaclaz
QUOTE (Zaranthos @ Jan 6 2011, 05:37 PM) *
Good links. But so far I haven't gotten a working bootable CD. Looks like Ultra ISO might be breaking the CD image when I try to modify the contents.

Edit: Looks like it's not Ultra ISO that's breaking it. Probably not working because I'm making it from XP SP3. Time to install VMWare and SP1 I guess.

Use the downloaded set of floppies for XPSP1 AND the batch.
NEVER edit a bootable .iso.
ALWAYS recreate it from scratch.

I like when people does COMPLETELY another thing from what was suggested. thumbup.gif

jaclaz
Zaranthos
That's great if it worked. What the batch file makes is a recovery CD without the stuff I need. So to get it to work requires more mucking around that I was hoping to avoid.
jaclaz
QUOTE (Zaranthos @ Jan 6 2011, 08:54 PM) *
That's great if it worked. What the batch file makes is a recovery CD without the stuff I need.

Sure.
But it also gives a good hint (actually the EXACT syntax and the actual utilities) needed to create the CD.
It should not be a problem adding CHKREG.EXE and changing the source for spcmdcon.sys ...

jaclaz
Zaranthos
Yeah I figured it out. But I get the same result. A CD that won't boot. It's possible the boot loader is for XP SP1 Home or Pro and I'm using SP1 Corp....
Zaranthos
Well that sucked more than half my day. Finally got it working.

XP Pro SP3 boot CD with the Windows 2000 chkreg.exe registry repair utility integrated. Simply boot the CD, select the recovery console and it attempts to repair the registry. There are NO OPTIONS so back up your registry files before using this since I don't know what kind of damage it can do or if it makes any backups at all. It might fix a corrupt registry or just make it worse but at least you don't need 6 Windows 2000 boot floppies to try it.

Shared here as long as it lasts.
REMOVED
nuMe
Good to hear you got your problem resolved but if your link contains any proprietary code, like stuff owned by microsoft, expect it to be removed rather quickly. You would do better telling how you created the file, so others can follow in your footsteps. What you downloaded, where from, how you assembled them/
jaclaz
It won't probably matter, but the file link was removed and our new member Zaranthos had it's warn level increased.

jaclaz
Zaranthos
Harsh. Maybe technically it shouldn't be shared but all of it is available for legal download except maybe the recovery console. But I should have checked the rules before linking it.

This is how I made it.

You'll need WinRar or something that will open the installer archives. You should be able to create this from any XP computer (SP1-SP3).
Follow this link and download the boot floppy setup for the version of Windows you have. The SP2 version should work with SP3 so don't worry about no SP3 links.
http://support.microsoft.com/kb/310994

Download this:
http://www.microsoft.com/downloads/en/deta...;DisplayLang=en

Follow this link and get the direct download link file there. Extract that to a folder. Read the readme if you want to know what it does.
http://reboot.pro/2254/

Use WinRar to extract the chkreg package (right click, extract here should work). You don't need the install.cmd file. Rename your boot disk download to BootDisk.exe and put it in the folder you extracted the recovery console archive to. Run the RecoveryCD.bat. When it asks if you want to burn the recovery console CD just wait and ignore it for now. It should have created a folder C:\RecoveryCD. Put the two files you extracted from the chkreg archive in C:\RecoveryCD\I386 (make sure they go in the i386 folder and overwrite the file when it asks since you want to replace it). Now you can go back and answer yes to create the CD. If it doesn't burn the CD for some reason you can burn the ISO file it creates using another program like Nero that burns ISO's.

None of this is my work, you can find who figured all this out by going back to the beginning of this topic and reading. All my original problems making this were dead links, and then getting the wrong boot disk download that was linked. All I did was figure out you need a specific boot disk download that matches the version of Windows you're creating the disks from. So thanks to the people who figured this out and posted working links.

Oh, and thanks to Microsoft for their anal licensing agreements that force people to contort themselves in painful and unpleasant ways to make something that should just be available for download since it's useless to anyone who doesn't have their product in the first place. bangin.gif
jaclaz
QUOTE (Zaranthos @ Jan 7 2011, 02:46 PM) *
So thanks to the people who figured this out and posted working links.

And thanks to you for having spent the time to re-update the thingie and explaining how you did it. thumbsup.gif

Warn level re-set to 0%. I am pretty sure you didn't do it knowingly, and no harm was done. smile.gif

Just for the record:
you do not *need* WinRar (Commercial), you can use 7-zip (Freeware) to do the extracting:
http://www.7-zip.org/

As well, you don't *need* Nero to burn the CD, actually the ALWAYS advised app to burn a CD is IMGBURN (Freeware):
http://www.imgburn.com/
a guide to burn a .iso is here:
http://forum.imgburn.com/index.php?showtopic=61

The batch by Dean Adams is available here (the linked page on boot-land reboot.pro contains just these addresses - and some other things like how to put the thingie on a USB or build using Wiinbuilder instead) :
http://tips.vlaurie.com/2006/05/recovery-c...out-an-xp-disk/
Direct download link:
http://vlaurie.com/computers2/downloads/re..._console_cd.zip

To further clarify the procedure, the CHKREG.EXE file you download is a self-extracting archive that contains three files:
  1. install.cmd
  2. chkreg.exe
  3. SPCMDCON.SYS


  1. Ignore install.cmd
  2. copy chkreg.exe to <drive letter>\RecoveryCD\I386\
  3. copy SPCMDCON.SYS to <drive letter>\RecoveryCD\I386\ overwriting the existing file


jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.