Backup all the machines registry to its local machine


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.

LVL 11
Who is Participating?
Farhan KaziConnect With a Mentor Systems EngineerCommented:
:: 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
Christopher McKayMicrosoft Network AdministratorCommented:
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!


bsharathAuthor Commented:
Any way instead of the startup.Any way to scan machine names from a file.
Christopher McKayMicrosoft Network AdministratorCommented:
You could schedule a backup of the system state to run at regular intervals:

The system state backup will include the registry.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.