PC Review


Reply
Thread Tools Rate Thread

comparing registry files from the command line

 
 
bill
Guest
Posts: n/a
 
      6th Mar 2008
Hello,

i made 2 registry backup's (Sam, Security, Software, System, Default)
after the system was booted with BartPE.


Questions:
1.
How can 2 versions of those files be compared from the command-line?

2.
How can the changes be written/saved to a file?



Thank you very much for any help!

Bill





 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      7th Mar 2008
Depends on the tools you used for the backup.


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"bill" wrote:
> Hello,
>
> i made 2 registry backup's (Sam, Security, Software, System, Default)
> after the system was booted with BartPE.
>
>
> Questions:
> 1.
> How can 2 versions of those files be compared from the command-line?
>
> 2.
> How can the changes be written/saved to a file?
>
>
>
> Thank you very much for any help!
>
> Bill
>
>
>
>
>

 
Reply With Quote
 
bill
Guest
Posts: n/a
 
      7th Mar 2008
On 7 Mrz., 04:08, "Dave Patrick" <DSPatr...@nospam.gmail.com> wrote:
> Depends on the tools you used for the backup.


Thank's for the reply Dave! Yes I should have explained my "registry
backup approach" better :-)

I booted the PC with BartPE(very similar to Microsoft Windows PE) from
CD-ROM and was therefore able to access all registry files normally
locked by the OS(Windows). Copied (Sam, Security, Software, System,
Default) to an other partition.

And now, I would like to compare 2 versions of such a registry file
(made at different point in time) and write the changes to a file (if
possible from the commandline).


Thank's a lot in advance for any help!

Bill
 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      8th Mar 2008
Maybe something like this.

http://www.registrytool.com/



--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"bill" wrote:
> Thank's for the reply Dave! Yes I should have explained my "registry
> backup approach" better :-)
>
> I booted the PC with BartPE(very similar to Microsoft Windows PE) from
> CD-ROM and was therefore able to access all registry files normally
> locked by the OS(Windows). Copied (Sam, Security, Software, System,
> Default) to an other partition.
>
> And now, I would like to compare 2 versions of such a registry file
> (made at different point in time) and write the changes to a file (if
> possible from the commandline).
>
>
> Thank's a lot in advance for any help!
>
> Bill

 
Reply With Quote
 
bill
Guest
Posts: n/a
 
      10th Mar 2008
On 8 Mrz., 04:57, "Dave Patrick" <DSPatr...@nospam.gmail.com> wrote:
> Maybe something like this.
>
> http://www.registrytool.com/


Thank`s for the feedback! I would like to do this registry comparison
from the command line with standard MS-tools. Is this really not
possible?


Any feedback is appreciated very much. Thank you!

Bill
 
Reply With Quote
 
bill
Guest
Posts: n/a
 
      13th Mar 2008
> Thank`s for the feedback! I would like to do this registry comparison
> from the command line with standard MS-tools. Is this really not
> possible?



Ok, I think Compreg.exe is the tool for such jobs :-)


Comparing Two Computers' Registries

Microsoft Compreg (Compreg.exe) is on the Microsoft Windows 2000
Resource Kit CD-ROM but
not in Windows 2000 Resource Kit Support Tools. It's an MS-DOS program
that compares two
different subkeys, whether they're on the same computer or not. That
is, you can compare
two subkeys on the same computer, or you can compare the same subkey
on two different
computers. The program's output looks like Listing 9.3.
Example 9.3. Sample Output from Compreg

1 \ShellNew
1 \ShellEx
2 \Wordpad.Document.1
2 \Word.Document.6
2 \WordDocument
2 \ShellEx
2 \Word.Document.8
1 ! REG_SZ,[Paint.Picture]
2 ! REG_SZ,[Word.Document.8]
1 !Content Type REG_SZ,[image/bmp]
2 !Content Type REG_SZ,[application/msword]
End of search : 9 differences found.



After installing the resource kit, type compreg at the MS-DOS command
prompt and include
any of the following command-line options:

compreg <1> <2> [-v] [-r] [-e] [-d] [-q] [ -n] [-h] [-?]
1 Path of the first subkey
2 Path of the second subkey
-v Shows differences and matches
-r Visits subkeys that exist only in 1 or 2
-e Sets errorlevel to the previous error code
-d Limits output to just subkey names, not values
-q Limits output to the number of differences
-n Disables the use of color in the output
-h Displays help
-? Displays command-line options

Some aspects of Compreg's command-line options bear more explanation.
In particular,
1 and 2 specify the Registry subkeys you're comparing. The notation is
\\Name\Subkey.
Name, if provided, can be the name of any computer on the network.
Subkey is a subkey
within that computer's Registry. If you don't provide a computer name,
Compreg assumes
the subkey is in the local Registry. Subkey is usually a fully
qualified name starting
from one of the root keys. You must use one of the abbreviations shown
in Table 9.2,
though, not the conventional abbreviations you learned about in
Chapter 1, "Understanding
Registries." If you specify just a computer name for 2 , Compreg
compares the subkey
specified by 1 to the same subkey on the machine specified by 2 . To
speed you along,
the following list shows several examples:

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot update registry from command line Kevin Brault Windows XP Customization 1 1st Feb 2006 06:20 AM
comparing excel spreadsheets from command line =?Utf-8?B?Z3JhaGFtbw==?= Microsoft Excel Misc 3 25th Jul 2005 01:21 PM
Registry Command Line Tool Bjoern Eberth Microsoft Windows 2000 Registry Archive 0 9th Feb 2004 10:21 AM
Remote Registry via command line Spec Microsoft Windows 2000 Registry Archive 0 15th Jan 2004 12:26 PM
Re: What is the command for comparing 2K Files? Oli Restorick [MVP] Microsoft Windows 2000 Setup 1 26th Aug 2003 01:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:14 AM.