Windows 10: Backup System Registry Hives

Discus and support Backup System Registry Hives in Windows 10 Backup and Restore to solve the problem; Create backups of the system registry hives to C:\Registry_Backups folder. Code: :: Created By @Echo Off & Cls Echo. Echo. Call :IsAdmin If Not... Discussion in 'Windows 10 Backup and Restore' started by FreeBooter, Aug 3, 2019.

  1. Backup System Registry Hives


    Create backups of the system registry hives to C:\Registry_Backups folder.


    Code: :: Created By @Echo Off & Cls Echo. Echo. Call :IsAdmin If Not Exist C:\Registry_Backups (md C:\Registry_Backups) Else (Goto :Skip) If Not Exist C:\Registry_Backups\RegOld (Md C:\Registry_Backups\RegOld) Else (Goto :Skip) :Skip if exist C:\Registry_Backups\DEFAULT.OLD move /Y C:\Registry_Backups\DEFAULT.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SAM.OLD move /Y C:\Registry_Backups\SAM.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SECURITY.OLD move /Y C:\Registry_Backups\SECURITY.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SOFTWARE.OLD move /Y C:\Registry_Backups\SOFTWARE.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SYSTEM.OLD move /Y C:\Registry_Backups\SYSTEM.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\NTUSER.OLD move /Y C:\Registry_Backups\NTUSER.OLD C:\Registry_Backups\RegOld If Exist C:\Registry_Backups\DEFAULT Ren C:\Registry_Backups\DEFAULT DEFAULT.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SAM Ren C:\Registry_Backups\SAM SAM.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SECURITY Ren C:\Registry_Backups\SECURITY SECURITY.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SOFTWARE Ren C:\Registry_Backups\SOFTWARE SOFTWARE.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SYSTEM Ren C:\Registry_Backups\SYSTEM SYSTEM.OLD 2>&1 > Nul If Exist C:\Registry_Backups\NTUSER.DAT Ren C:\Registry_Backups\NTUSER.DAT NTUSER.OLD 2>&1 > Nul REG SAVE HKU\.DEFAULT C:\Registry_Backups\DEFAULT REG SAVE HKLM\SAM C:\Registry_Backups\SAM REG SAVE HKLM\SECURITY C:\Registry_Backups\SECURITY REG SAVE HKLM\SOFTWARE C:\Registry_Backups\SOFTWARE REG SAVE HKLM\SYSTEM C:\Registry_Backups\SYSTEM REG SAVE HKCU C:\Registry_Backups\NTUSER.DAT :IsAdmin Reg query "HKU\S-1-5-19\Environment" If Not %ERRORLEVEL% EQU 0 ( Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title - WARNING - Echo. Echo. Echo YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE Pause >Nul & Exit ) Cls Goto :EOF[/quote]

    :)
     
    FreeBooter, Aug 3, 2019
    #1
  2. dalchina Win User

    Backup Registry Hives


    That's documented on the internet quite widely, making use of the now non-functional Regback feature. Requires a live boot disk of course.

    I've used it a couple of times on tenforums; exclusively for the case where a user's registry is suddenly corrupted, PC unbootable, System Restore unavailable, and user has no disk images.

    Example: (these include this basic copy from backup and more)
    Restore Windows 10 Registry from Backup using Command Prompt TheITBros
    5 Ways To Backup and Restore the Windows Registry or Selected Hives • Raymond.CC
     
    dalchina, Aug 3, 2019
    #2
  3. Backup Registry Hives


    As many of us knows that latest version of Windows 10 won't backup registry hives which could be needed when Windows 10 won't boot because of registry errors.

    I have created batch script for backing up registry hives this batch script will create two folders at root of C: partition and stores copies of registry hives. The folder named Registry_Backups will contain newly created registry hives and previously created copies of registry hives, these previous backups will have OLD extension. The C:\Registry_Backups\RegOld folder contains previously created registry hive files with OLD extension. This batch script can be schedule to make backup copies of the registry hive files at any given time, i have setup a schedule to make sure my registry hives are backup at logon time.

    Execute the batch script with administrative privileges.

    Code:
    Code:
    :: Created By  @Echo Off & Cls Echo.   Call :IsAdmin   If Not Exist C:\Registry_Backups (md C:\Registry_Backups) Else (Goto :Skip) If Not Exist C:\Registry_Backups\RegOld (Md C:\Registry_Backups\RegOld) Else (Goto :Skip)   :Skip   if exist C:\Registry_Backups\DEFAULT.OLD move /Y C:\Registry_Backups\DEFAULT.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SAM.OLD move /Y C:\Registry_Backups\SAM.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SECURITY.OLD move /Y C:\Registry_Backups\SECURITY.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SOFTWARE.OLD move /Y C:\Registry_Backups\SOFTWARE.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\SYSTEM.OLD move /Y C:\Registry_Backups\SYSTEM.OLD C:\Registry_Backups\RegOld if exist C:\Registry_Backups\NTUSER.OLD move /Y C:\Registry_Backups\NTUSER.OLD C:\Registry_Backups\RegOld            If Exist C:\Registry_Backups\DEFAULT Ren C:\Registry_Backups\DEFAULT DEFAULT.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SAM Ren C:\Registry_Backups\SAM  SAM.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SECURITY Ren C:\Registry_Backups\SECURITY SECURITY.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SOFTWARE Ren C:\Registry_Backups\SOFTWARE SOFTWARE.OLD 2>&1 > Nul If Exist C:\Registry_Backups\SYSTEM Ren C:\Registry_Backups\SYSTEM SYSTEM.OLD 2>&1 > Nul If Exist C:\Registry_Backups\NTUSER.DAT Ren C:\Registry_Backups\NTUSER.DAT NTUSER.OLD 2>&1 > Nul       If %Errorlevel% GTR 0 ( @Echo Set oWshShell = WScript.CreateObject^("WScript.Shell"^) > %Tmp%\Popup.vbs @Echo oWshShell.Popup "Error Backing Registry Hives" , 15, "Registry Hive Backup Error", 0     >> %Tmp%\Popup.vbs Wscript %Tmp%\Popup.vbs )   If Exist "%Tmp%\Popup.vbs" Del %Tmp%\Popup.vbs >nul       REG SAVE HKU\.DEFAULT C:\Registry_Backups\DEFAULT REG SAVE HKLM\SAM C:\Registry_Backups\SAM REG SAVE HKLM\SECURITY C:\Registry_Backups\SECURITY REG SAVE HKLM\SOFTWARE C:\Registry_Backups\SOFTWARE REG SAVE HKLM\SYSTEM C:\Registry_Backups\SYSTEM REG SAVE HKCU C:\Registry_Backups\NTUSER.DAT     :IsAdmin Reg query "HKU\S-1-5-19\Environment" If Not %ERRORLEVEL% EQU 0 (  Cls & Mode CON  LINES=5 COLS=48 & Color 0C & Title - WARNING -  Echo.  Echo.  Echo  YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE  Pause >Nul & Exit ) Cls Goto :EOF
    Please copy/paste batch scripts codes to Notepad and save it as RegBackup.bat.
     
    FreeBooter, Aug 3, 2019
    #3
  4. dalchina Win User

    Backup System Registry Hives

    dalchina, Aug 3, 2019
    #4
Thema:

Backup System Registry Hives

Loading...
  1. Backup System Registry Hives - Similar Threads - Backup System Registry

  2. Registry Hive Recovered Windows 7 X64

    in Windows 10 Gaming
    Registry Hive Recovered Windows 7 X64: file: '\??\C:\System Volume Information\Syscache.hve' was corrupted and it has been recovered. Some data might have been lost. https://answers.microsoft.com/en-us/windows/forum/all/registry-hive-recovered-windows-7-x64/d7889e2d-41d1-49d8-ace6-07040061489a
  3. Registry Hive Recovered

    in Windows 10 Gaming
    Registry Hive Recovered: file: '\??\C:\System Volume Information\Syscache.hve' was corrupted and it has been recovered. Some data might have been lost. https://answers.microsoft.com/en-us/windows/forum/all/registry-hive-recovered/d7889e2d-41d1-49d8-ace6-07040061489a
  4. Registry Hive Recovered

    in Windows 10 Software and Apps
    Registry Hive Recovered: file: '\??\C:\System Volume Information\Syscache.hve' was corrupted and it has been recovered. Some data might have been lost. https://answers.microsoft.com/en-us/windows/forum/all/registry-hive-recovered/d7889e2d-41d1-49d8-ace6-07040061489a
  5. How-to explore \REGISTRY\A\ hive?

    in Windows 10 Customization
    How-to explore \REGISTRY\A\ hive?: This file does something in \REGISTRY\A\ hive.https://www.virustotal.com/gui/file/21feafefb5eff856a47945000c079d7c8954caf877b03a31b34ea9a546da3d33/behaviorHow-to explore it?...
  6. Default Registry key Hive?

    in Windows 10 Ask Insider
    Default Registry key Hive?: is it possible to find a such template fr cross-referencing my new install with original defaults anywhere? I would like to check how clean my clean install really is... I'm afraid I have a rootkit or some sort or a hyper-persistent RAT as I've re-installed my OS 15 times+...
  7. system registry backup

    in Windows 10 Installation and Upgrade
    system registry backup: How do I re-enable the automatic system registry backup in windows 10, ver 1903? https://answers.microsoft.com/en-us/windows/forum/all/system-registry-backup/6cd035fa-f7a9-4481-b9b0-5c74bd3f4d24
  8. Windows10 corrupts SYSTEM registry hive minutes after installation

    in Windows 10 Installation and Upgrade
    Windows10 corrupts SYSTEM registry hive minutes after installation: Hi, I'm having an issue with my HP EliteBook 840 G4 After installing windows10, everything seems fine, then I connect to the internet through wifi. Windows starts installing updates, driver updates and optional features... Then, after a few minutes connected, windows...
  9. Backup Registry Hives

    in Windows 10 Backup and Restore
    Backup Registry Hives: As many of us knows that latest version of Windows 10 won't backup registry hives which could be needed when Windows 10 won't boot because of registry errors. I have created batch script for backing up registry hives this batch script will create two folders at root of C:...
  10. Backup Registry Hives

    in Windows 10 Support
    Backup Registry Hives: As many of us knows that latest version of Windows 10 won't backup registry hives which could be needed when Windows 10 won't boot because of registry errors. I have created batch script for backing up registry hives this batch script will create two folders at root of C:...