Backup all the machines registry to its local machine

Hi,

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.

Regards
Sharath
LVL 11
bsharathAsked:
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
0
 
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!

:o)

Bartender_1
0
 
bsharathAuthor Commented:
Any way instead of the startup.Any way to scan machine names from a file.
0
 
Christopher McKayMicrosoft Network AdministratorCommented:
You could schedule a backup of the system state to run at regular intervals:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntbackup_schedule_backup.mspx?mfr=true

The system state backup will include the registry.

:o)

Bartender_1
0
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.