PC Review


Reply
Thread Tools Rate Thread

Compare the Registry

 
 
alantang(Anti-Spam)
Guest
Posts: n/a
 
      10th Mar 2005
Hello:

I would like to check with the some of the registry value or key. Does
any tools that can easily to find out does the value or key is the same
as I except? (Like Security Configuration and Analysis)
Does the compare tools can run on command line?

Thanks a lot!
 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      11th Mar 2005
On Fri, 11 Mar 2005 00:12:42 +0800, "alantang(Anti-Spam)" <"alantang(Anti-Spam)"@netband.com.hk> wrote:

>Hello:
>
> I would like to check with the some of the registry value or key. Does
>any tools that can easily to find out does the value or key is the same
>as I except? (Like Security Configuration and Analysis)
>Does the compare tools can run on command line?
>
>Thanks a lot!



You could export a model, like regedit /A model.txt "TheKey"

Later, regedit /A now.txt "TheKey"

FC model.txt now.txt

See tip 305 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
=?Utf-8?B?QWxhbiBUYW5n?=
Guest
Posts: n/a
 
      12th Mar 2005
Hello:

I would like compare a few registry values.
E.G.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\CrashOnAuditFail
I would to check doe the registry value is 1 or not.

Thanks!



 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      12th Mar 2005
On Fri, 11 Mar 2005 19:53:01 -0800, Alan Tang <(E-Mail Removed)> wrote:

>Hello:
>
>I would like compare a few registry values.
>E.G.
>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\CrashOnAuditFail
>I would to check doe the registry value is 1 or not.
>
>Thanks!
>
>

Use REG.EXE, built into Windows XP, Windows Server 2003, and later, or installed from the Windows 2000 Support Tools on your O/S CD-ROM.

set CrashOnAuditFail=N
for /f "Tokens=1,3" %%a in ('reg query "HKLM\System\CurrentControlSet\Control\Lsa" /V CrashOnAuditFail^|Findstr /I /L /C:"CrashOnAuditFail"') do (
for /f "Tokens=2 Delims=x" %%c in ('@echo %%b') do (
set CrashOnAuditFail=%%c
)
)
if "%CrashOnAuditFail%" EQU "N" goto notfound
if "%CrashOnAuditFail%" EQU "1" goto coaf1


OR

set CrashOnAuditFail=N
for /f "Tokens=1,3" %%a in ('reg query "HKLM\System\CurrentControlSet\Control\Lsa" /V CrashOnAuditFail^|Findstr /I /L /C:"CrashOnAuditFail"') do (
set CrashOnAuditFail=%%b
)
if "%CrashOnAuditFail:~2,1%" EQU "1" goto coaf1


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
=?Utf-8?B?QWxhbiBUYW5n?=
Guest
Posts: n/a
 
      15th Mar 2005
It is very useful for me.

Thanks a lot!

 
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
Registry compare =?Utf-8?B?TGlsbGlhbiBMaWFu?= Microsoft Excel Programming 4 31st May 2007 07:25 PM
Re: compare registry Alex Nichol Windows XP General 0 19th Aug 2003 01:57 PM
Re: compare registry djs Windows XP General 0 18th Aug 2003 07:06 PM
Re: compare registry John Windows XP General 0 18th Aug 2003 06:43 PM
REGISTRY compare. Nelson Cid Loureiro Neto Microsoft Windows 2000 Registry Archive 0 30th Jul 2003 01:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:38 PM.