1. Boot to the working OS
Essentially you need to get access to the HDD. This unfortunately can be the most difficult part of the restore. You can do this a variety of ways 1) NTRECOVER is usually the easiest way (www.sysinternals.com). 2) Install a second copy of NT on the HDD. 3)temporarly install a extra HDD with a OS that allows read/write access (either NT or win9x with NTFSDOS).
2. Over write the hive in the %systemroot%\system32\config dir with the correct hive.
The software hiveneeds to be placed on some sort of media which can be used by the machine to be repaired. My personal favourite is a CD (I regularly burn copies of all the ERDs of all the servers to CD monthly).
If you do not have a current copy (ERD failed andyou didn't know about it) use the compressed hive in the %systemroot%\repair directory. This can be uncompressed by using EXPAND.EXE. Then simply copy it over the old one.
If you have the OS that needs repairing running (but not fully) try using the REGREST.EXE from the Reskit. It is a cool util that allows you to restore a Hive while a machine is running.
3. Boot to the repaired system
If you have a second copy of NT installed on your servers a restore can be done inside of 20mins. The biggest problem I have had is that people didn't have a ERD - one machine I recently restored its last ERD was run 29/1/99.
If you want a script to backup to a network share email me or there is a techrepublic article which explains how todo it.
HTH
mcalleja@bigfoot.com