• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

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
0
bsharath
Asked:
bsharath
  • 2
1 Solution
 
Christopher McKayCommented:
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 McKayCommented:
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
 
Farhan KaziSystems 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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now