09-03-2024, 01:55 AM
Comprehensive List of ERUNT Commands with Descriptions
**ERUNT** (Emergency Recovery Utility NT) is a utility for backing up and restoring the Windows Registry. It is particularly useful for creating registry backups that can be restored in case of system failures. Below is a detailed list of ERUNT commands, along with descriptions and examples.
1. Backing Up the Registry
Description: Creates a backup of the entire Windows Registry. By default, the backup is stored in a folder named after the current date.
Example: To back up the registry to `C:\RegBackups`:
Note: If no path is specified, ERUNT will create a backup in the `C:\WINDOWS\ERDNT` directory by default.
2. Backing Up the Registry with a Custom Folder Name
Description: Creates a registry backup with a custom folder name instead of the default date-based name.
Example: To back up the registry to `C:\RegBackups\MyBackup`:
3. Silent Mode Backup
Description: Performs a registry backup without displaying any prompts or confirmation dialogs.
Example: To silently back up the registry to `C:\RegBackups`:
4. Automated Daily Backup
Description: Configures ERUNT to create daily backups automatically, storing backups in a specified directory.
Example: To set up automated daily backups in `C:\RegBackups` and keep backups for 7 days:
5. Restoring the Registry from a Backup
Description: Restores the registry from a previously created backup. The restoration process should be performed from Safe Mode or from outside of Windows.
Example: To restore the registry from a backup located in `C:\RegBackups\20230902`:
6. Restoring the Registry Silently
Description: Restores the registry without any prompts or user interaction.
Example: To restore the registry from a backup located in `C:\RegBackups\20230902` without any prompts:
7. Backing Up Only Specific Parts of the Registry
Description: Allows you to back up only specific registry hives such as `SYSTEM`, `SOFTWARE`, or `DEFAULT`.
Example: To back up only the `SYSTEM` and `SOFTWARE` hives to `C:\RegBackups\PartialBackup`:
8. Creating a Backup and Including the User Registry
Description: Backs up the entire registry including the user registry hives (`NTUSER.DAT`).
Example: To back up the registry including the user registry to `C:\RegBackups`:
9. Restoring the Registry with the User Registry
Description: Restores the entire registry including the user registry hives.
Example: To restore the registry including the user registry from `C:\RegBackups\20230902`:
10. Automating the Backup Process via Task Scheduler
Description: Automates the backup process by scheduling it with Windows Task Scheduler. This is not a direct ERUNT command but can be set up using Task Scheduler.
Example: To create a daily registry backup at 2 AM:
Conclusion
ERUNT is a valuable tool for backing up and restoring the Windows Registry. By using these commands, you can ensure that your system's registry is safely backed up and can be restored in the event of a system issue. Regular backups can prevent significant data loss and simplify recovery processes.
Happy Scripting!
**ERUNT** (Emergency Recovery Utility NT) is a utility for backing up and restoring the Windows Registry. It is particularly useful for creating registry backups that can be restored in case of system failures. Below is a detailed list of ERUNT commands, along with descriptions and examples.
1. Backing Up the Registry
Description: Creates a backup of the entire Windows Registry. By default, the backup is stored in a folder named after the current date.
Code:
erunt.exe [BackupPath]
Code:
erunt.exe C:\RegBackups
2. Backing Up the Registry with a Custom Folder Name
Description: Creates a registry backup with a custom folder name instead of the default date-based name.
Code:
erunt.exe [BackupPath]\[CustomFolderName]
Code:
erunt.exe C:\RegBackups\MyBackup
3. Silent Mode Backup
Description: Performs a registry backup without displaying any prompts or confirmation dialogs.
Code:
erunt.exe [BackupPath] /noconfirmdelete /noprogresswindow /days:0
Code:
erunt.exe C:\RegBackups /noconfirmdelete /noprogresswindow /days:0
4. Automated Daily Backup
Description: Configures ERUNT to create daily backups automatically, storing backups in a specified directory.
Code:
erunt.exe [BackupPath] /days:[NumberOfDays]
Code:
erunt.exe C:\RegBackups /days:7
5. Restoring the Registry from a Backup
Description: Restores the registry from a previously created backup. The restoration process should be performed from Safe Mode or from outside of Windows.
Code:
erdnt.exe [BackupPath]
Code:
erdnt.exe C:\RegBackups\20230902
6. Restoring the Registry Silently
Description: Restores the registry without any prompts or user interaction.
Code:
erdnt.exe [BackupPath] /silent
Code:
erdnt.exe C:\RegBackups\20230902 /silent
7. Backing Up Only Specific Parts of the Registry
Description: Allows you to back up only specific registry hives such as `SYSTEM`, `SOFTWARE`, or `DEFAULT`.
Code:
erunt.exe [BackupPath] /registry [hive1] [hive2] ...
Code:
erunt.exe C:\RegBackups\PartialBackup /registry system software
8. Creating a Backup and Including the User Registry
Description: Backs up the entire registry including the user registry hives (`NTUSER.DAT`).
Code:
erunt.exe [BackupPath] /user
Code:
erunt.exe C:\RegBackups /user
9. Restoring the Registry with the User Registry
Description: Restores the entire registry including the user registry hives.
Code:
erdnt.exe [BackupPath] /user
Code:
erdnt.exe C:\RegBackups\20230902 /user
10. Automating the Backup Process via Task Scheduler
Description: Automates the backup process by scheduling it with Windows Task Scheduler. This is not a direct ERUNT command but can be set up using Task Scheduler.
Code:
schtasks /create /tn "DailyRegistryBackup" /tr "C:\Path\To\erunt.exe C:\RegBackups /noconfirmdelete /noprogresswindow /days:7" /sc daily /st 02:00
Code:
schtasks /create /tn "DailyRegistryBackup" /tr "C:\ERUNT\erunt.exe C:\RegBackups /noconfirmdelete /noprogresswindow /days:7" /sc daily /st 02:00
Conclusion
ERUNT is a valuable tool for backing up and restoring the Windows Registry. By using these commands, you can ensure that your system's registry is safely backed up and can be restored in the event of a system issue. Regular backups can prevent significant data loss and simplify recovery processes.
Happy Scripting!