Solved

Get the whole registry of a remote machine

Posted on 2007-08-11
1
221 Views
Last Modified: 2010-03-05
Hi,

Is there a software to get the remote registry edit it and upload it back for the changes.

Regards
Sharath
0
Comment
Question by:bsharath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 26

Accepted Solution

by:
farhankazi earned 500 total points
ID: 19676921
Third party software:
http://www.emco.is/registry_merge/features.html

:: ================
:: READ THIS FIRST
:: ================
:: * To run this script you must have domain administrators rights.
:: * This script require "PSExec.exe" file (comes with PSTools) on C: drive root
:: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
:: * You need to set 'RegFile' variable's value inside the script
::    Like:
::             SET RegFile=C:\IESettings.reg   <-- registry file
::    WARNING:  Registry file should be in proper format.  
::    WARNING:  If you set this file incorrectly, you may cause serious problems that may require you to reinstall your operating system
::   For more info visit: http://support.microsoft.com/kb/310516
:: * Successful run will generate "C:\RegImportRpt.txt" file on C: drive root.
:: * Copy and Paste following script into notepad and save it with any name having .cmd extension.
:: Batch Script Start

@Echo Off
SETLOCAL
SET RegFile=C:\IESettings.reg

IF NOT EXIST C:\Computers.txt Goto ShowErr
FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
IF NOT EXIST %RegFile% ( Echo Can not find %RegFile% file. && Goto :EndScript)

IF EXIST C:\RegImportRpt.txt DEL /F /Q C:\RegImportRpt.txt
FOR %%F IN (%RegFile%) DO SET RegFName=%%~nF%%~xF

FOR /F %%c IN ('Type C:\Computers.txt') Do (
    Echo Processing: %%c
      PING -n 1 -w 800 %%c|Find /I "TTL" >NUL
      IF NOT ErrorLevel 1 (
            Echo Importing Regintry on: %%c >>C:\RegImportRpt.txt
            Copy /Y %RegFile% \\%%c\C$\ >>C:\RegImportRpt.txt
            PSExec \\%%c -s -i Regedit /S C:\%RegFName%
            DEL /Q /F \\%%c\C$\%RegFName%
      )ELSE (Echo %%c: Not able to connect >>C:\RegImportRpt.txt)
)      

Goto EndScript
:ShowErr
Echo "C:\Computers.txt" file does not exist or file is empty!
:EndScript
ENDLOCAL
:: Batch Script End
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Suggested Courses

624 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