Backup and restore the Windows NT registry database

Microsoft released with the Windows 2000 resource kit the following two utilities: They allow one to backup and restore the registry, which also can be used to shrink/compress the registry files. The system registry (Software, System, Sam) and the user registry (Ntuser.dat) can grow large over time as software and hardware is installed and uninstalled.

To backup the current system and user profile to C:\Backup (Remember to have created the directory):

Regback C:\Backup

This will restore a backup from C:\Backup and files being replaced are placed in C:\Backup.old (Remember to have created the directory):

Regrest C:\Backup C:\Backup.old

The restore just renames the file so both the new, backup and destination must be on the same drive. One can also do the restore the registry using the recovery console as the Regback saves the backup in the proper registry file format.

Note if one don't like command line tools then one can try this very userfriendly utility called EruNT.

More Info MS KB318149

Updated: 30 June 2007

Leave a Reply

Your email address will not be published. Required fields are marked *