Page 1 of 2 12 Last
  1. #1
    StrayCat is offline Senior Member
    Join Date
    Nov 2009
    Posts
    200

    Smile Backup/restore your registry using ERUNT, even when running Windows7

    ERUNT - The Emergency Recovery Utility NT
    =====================================
    ERUNT and NTREGOPT

    At times even running system restore wont solve your problems, for various reasons.
    So Erunt gives you an option to create an automated daily backup of your registry at logon.(and restore it manually when necessary)
    Now ERUNT has been around for many years and always was part of my first aid toolkit up to Windows XP.
    However ,as stated by the programmer, Lars Hederer, adding ERUNT to your startup list don't work with Vista and Windows 7 when UAC is enabled.

    Nevertheless here's a nice work around to make this nifty program useful in Windows 7(with UAC enabled) :

    After installing ERUNT create a new scheduled task to autostart the program at user logon adding this argument:

    C:\Users\XXX\ERDNT\AutoBackup\#Date# /days:14 /noconfirmdelete /noprogresswindow
    (14 , if you only want to store 14 backups deleting older ones)

    Important: DON'T choose the default backup location being C:/Windows !!
    (that won't work),but you can choose any folder you like in your personal users' folder,or create a new one in there)

    Make sure to tick the box 'run with highest privileges'.

    Works like charm!
    (tested on Windows 7)

    Enjoy.

    PS Because I'm rather new here,I don't know if this is up to the standards of this forum...

    Robert.

    ERUNT - The Emergency Recovery Utility NT
    =========================================

    Registry Backup and Restore for Windows NT/2000/2003/XP

    v1.1j, 10/20/2005, Freeware
    Written by Lars Hederer

    Look for the latest version here:
    ERUNT and NTREGOPT
    Last edited by StrayCat; 16th November 2009 at 23:05. Reason: correction

  2. #2
    leofelix is offline Member
    Join Date
    Oct 2008
    Location
    Italy
    Posts
    1,668

    Default

    Welcome Robert
    And thanks for your interesting tutorial

  3. #3
    Fonebone's Avatar
    Fonebone is offline New Member
    Join Date
    Dec 2010
    Posts
    9

    Default

    Doesn't work for me, unfortunately. After starting the computer and checking in Task Planner, I find a record of the following events:

    106, Task registered.
    140, Task registration updated.
    118, Task triggered by computer start.

    So far, so good. But then...

    101, Error on Task start.

    However, it works if I start the ERUNT task manually. Then I get

    110, Task triggered by user.
    319, Task module received message to start the task.
    100, Task started.
    200, Activity started.
    129, Process for created task.
    201, Activity concluded.
    102, Task concluded.

    Checking in the path, the ERDNT folder and its subfolders are there now.

    Why does it work manually but not automatically ? I ticked the box "run with highest privileges".

    Windows 7 Home Premium 64-bit.
    Last edited by Fonebone; 31st December 2010 at 05:54.

  4. #4
    Fonebone's Avatar
    Fonebone is offline New Member
    Join Date
    Dec 2010
    Posts
    9

    Default

    Oh ya, and the result code is 2147943645 in case it helps.

    O.K., let's see what else I can find...

    Event Log also shows this for TaskScheduler:

    Event ID 332: "TaskScheduler did not start the Task "" because user "(computername)\(admin)" was not logged on when the start conditions were met. User action: Make sure that the user is logged on, or change the task definition to enable start without user logon."

    followed by

    Event ID 311: "TaskScheduler could not start the process of the task module "" due to an error in "LUAIsElevatedToken". Command="taskeng.exe". Additional data: Result code: 2147943645"

    and

    Event ID 101: "TaskScheduler could not start the task "\ERUNT" for user "(computername)\(admin)". Additional data: Result code: 2147943645"

    By the way: If some of the phrasing seems "off", it is because I am back-translating the messages from another language into English... when I wrote Task Planner above I probably should have written TaskScheduler instead
    Last edited by Fonebone; 1st January 2011 at 15:56.

  5. #5
    Fonebone's Avatar
    Fonebone is offline New Member
    Join Date
    Dec 2010
    Posts
    9

    Default

    I figured it out, by the simple expedient of entering the result code as a search string into Google.

    Turns out I had set "Run only when user is logged on" instead of "Run whether user is logged on or not."

    Set to the latter option, the ERUNT task now runs automatically on startup!

  6. #6
    Fonebone's Avatar
    Fonebone is offline New Member
    Join Date
    Dec 2010
    Posts
    9

    Default

    Spoke too soon... Yes the ERUNT task does run at startup and creates a folder named for the date on which it is run... but twelve out of the 13 "AutoBackup" folders that it created DO NOT have copy of the COMPONENTS hive!

    How important is COMPONENTS? Is it a must have? If I run the restore using ERDNT.EXE from an AutoBackup folder lacking COMPONENTS, will it corrupt my registry?

    Contents of the twelve folders are as follows:

    SOFTWARE
    SYSTEM
    DEFAULT
    SAM
    SECURITY
    BCD
    ERDNT.EXE
    ERDNTWIN.LOC
    ERDNTDOS.LOC
    ERDNT.INF
    ERDNT.CON

    plus

    USERS (subfolder, in turn containing subfolders 00000001 and 00000002, each containing a NTUSER.DAT file)

    Further complicating this issue is the fact that Windows' own "System Restore" is not working on my system.
    Last edited by Fonebone; 18th February 2011 at 04:48.

  7. #7
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,408

    Default

    Pls see if these registry backup utilities work for you:
    Regbak lets you backup and restore the Windows 7 Registry easily
    Backup, restore and optimize Windows Registry with new ERUNTgui

    Regarding your System Restore problem, pls see if something here helps you:
    Troubleshoot Windows 7 system restore problems.

  8. #8
    Fonebone's Avatar
    Fonebone is offline New Member
    Join Date
    Dec 2010
    Posts
    9

    Default

    Hi Andy, thank you for those links. I will check them out and report back to you.

    Edit 1:

    Regarding your System Restore problem, pls see if something here helps you:
    Troubleshoot Windows 7 system restore problems.
    That is not useful to me (not criticizing you, as you could not know this) because on my system, System Restore points are set all the time -- scheduled automatically, on important installations, manually when I want it -- and they are shown to exist and take up space just fine, but restoring the system hangs forever and never completes. (Event Viewer contains nothing in the way of error messages.)

    I have raised this issue on many expert forums and no one knows what to do, so I've given up on ever making System Restore work and focused on ERUNT instead.

    Edit 2:

    Pls see if these registry backup utilities work for you:
    Backup, restore and optimize Windows Registry with new ERUNTgui
    That appears to be simply a graphical user interface to replace the use of the command line in ERUNT, so not particularly useful. I have not had the problem of an error message with the BCD hive described there, and I am not going to turn off User Account Control (UAC) in my Windows 7.

    However, in the meantime I have looked over the ERUNT documentation at www dot larshederer dot homepage dot t-online dot de/erunt/erunt.txt (sorry but "not allowed to post URLs currently"!) more closely:

    ... necessary files,
    now called "hives" and usually named DEFAULT, SAM, SECURITY, SOFTWARE,
    SYSTEM in the SYSTEM32\CONFIG folder ...
    This does not mention the COMPONENTS hive (or, for that matter, the BCD hive). Another quote from the same help file:

    Next, select the backup options:

    - System registry: The current system registry, usually consisting of
    the files DEFAULT, SAM, SECURITY, SOFTWARE, and SYSTEM.

    - Current user registy: The registry files for the currently logged-on
    user, usually NTUSER.DAT and USRCLASS.DAT.

    - Other open user registries: Sometimes Windows has a few other user
    registries in memory. Examples for this are "generic" registries,
    e.g. for user "EVERYONE", or registries of other users if you use
    Fast Task Switching in Windows XP. Check this option to backup all
    these additional user registries (if found) as well.

    [...]

    (Technical information: ERUNT saves only registry files which are in
    use by the system. It obtains information about these files from
    registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\
    hivelist. Registry hives not listed there, for example those
    of other users of the computer, cannot be saved by ERUNT.)
    Again, the COMPONENTS hive is not mentioned. Elsewhere on the Web, I found info that it is associated with Windows Update and is loaded only when needed. And finally, this quote in the Help file:

    Now run the ERDNT.EXE file to start the restoration program. Select
    which registry components to restore (just the system registry will do
    in most cases
    ), then start restoration.
    So, I am reasonably certain by now that the COMPONENTS hive is non-essential.
    Last edited by Fonebone; 18th February 2011 at 16:28.

  9. #9
    japp's Avatar
    japp is offline Gold Member
    Join Date
    Jan 2011
    Location
    Norway
    Posts
    818

    Default

    Thanks, I went for Regbak. Seemed to be the easiest one for me to use

    Do you know of any free Registry Compactor?

  10. #10
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,408

Page 1 of 2 12 Last

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22