JSI Tip 5501. Freeware ERUNT allows you to schedule a backup of your registry hives.

In Windows NT 4.0, you could schedule %windir%\system32\rdisk.exe /s- to create a backup of the registry hives. In Windows 2000 and Windows XP, you could schedule a System State backup.

To schedule a backup of the system and open user hives, you can download erunt.zip.

To install the application, unzip the the erunt.zip file to c:\erunt. To run / schedule a backup, use the following commands:

@echo off
cd /d c:\erunt
erunt DestinationFolder sysreg curuser otherusers /noconfirmdelete /noprogresswindow

where DestinationFolder is the folder where you want the backup created. If the DestinationFolder does NOT exist, erunt will create it. If DestinationFolder does exist, the /noconfirmdelete switch will silently delete it.

The following files will be created in the DestinationFolder folder:


Additionally, a DestinationFolder\Users sub-folder will be created for the current/open user hives.

To restore the registry hives:

If you can boot to Safe Mode, switch to the DestinationFolder folder and run ERDNT.

If you cannot boot to Safe Mode but you can boot to the Recovery Console, Just copy the hives from the DestinationFolder folder to %SystemRoot%\System32\Config and /or the users profile folder.

NOTE: See The SET command in the Windows 2000 Recovery Console.

NOTE: See How can I use the Windows 2000 Recovery Console to recover Windows NT 4.0?

If you cannot boot the Recovery Console, use an alternate install on a different partition to copy the hives.

If you would like to schedule the use of different DestinationFolder folders, here are some examples:

Windows NT 4.0 or Windows 2000

@echo off
cd /d c:\erunt
for /f "Tokens=1" %%d in ('date /t') do set day=%%d
erunt C:\ERDNT\%day% sysreg curuser otherusers /noconfirmdelete /noprogresswindow

Windows XP, Windows NT 4.0, or Windows 2000

@echo off
cd /d c:\erunt
call UnivDate.bat
erunt C:\ERDNT\%dd% sysreg curuser otherusers /noconfirmdelete /noprogresswindow

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.