Backup all the machines registry to its local machine

Posted on 2007-08-09
Last Modified: 2010-04-20

I have a file which has all the machine names.What i want is to backup all the machines registry and store the reg file in its individual c:\windows folder with the machine name.reg.

Question by:bsharath
    LVL 22

    Expert Comment

    You could include the following lines in a startup script:

    reg export HKLM c:\windows\%computername%-HKLM.reg
    reg export HKCU c:\windows\%computername%-HKCU.reg
    reg export HKCR c:\windows\%computername%-HKCR.reg
    reg export HKU c:\windows\%computername%-HKLU.reg
    reg export HKCC c:\windows\%computername%-HKCC.reg

    That will backup each of the rootkeys to a file in windows containing the computer name and the rootkey name that the backup is of.

    Hope this helps!


    LVL 11

    Author Comment

    Any way instead of the startup.Any way to scan machine names from a file.
    LVL 22

    Expert Comment

    You could schedule a backup of the system state to run at regular intervals:

    The system state backup will include the registry.


    LVL 26

    Accepted Solution

    :: Following command require "PSExec.exe" file (comes with PSTools) on C: drive root
    :: Following command require "Computers.txt" file on C: drive root from where it will pick computer names.

    Click Start -> Run -> Cmd.exe
    FOR /F %c IN ('Type Computers.txt') Do PSExec \\%c Regedit /E %WinDir%\%c.reg

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

    Suggested Solutions

    Consider a situation when you deploy a seemingly harmless software package to your network without testing and therefore without fully knowing the implications of your actions. I was recently involved in just this situation when a corporate IT netwo…
    The environment that this is running in is SCCM 2007 R2 running on a Windows 2008 R2 server. The PXE Distribution point is running on its own Windows 2008 R2 box. This is what Event viewer showed after trying to start the WDS service:  An erro…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now