Reg command compare in Windows

The command reg compare helps to compare the specified subkey or entry.To learn more about how to use this command, see the example section below.

Syntax reg compare command

 reg compare [{/ v ValueName | / ve}] [{/ oa | / od | / os | on}] [/ s] 

Reg command parameter compare

Parameters

Describe

 

Specify the full path of the first subkey to be compared.To specify a remote computer, attach the computer name (in the format) as part of the KeyName parameter.In addition, parameter KeyName1 must also include a valid root key.Valid root keys for local computers are: HKLM, HKCU, HKCR, HKU and HKCC.If the remote computer is specified, valid root keys will be HKLM and HKU.

 

Specify the full path of the second subkey to be compared.To specify a remote computer, attach the computer name (in the format) as part of the KeyName parameter.If only specify each computer name in theKeyName2parameter, the path to thesubkeyspecified in KeyName1 will be used.In addition, the parameter KeyName2 must also include a valid root key.Valid root keys for local computers are: HKLM, HKCU, HKCR, HKU and HKCC.If the remote computer is specified, valid root keys will be HKLM and HKU.

/ v

Specify a value name to compare subkeys.

/ ve

Specifies that only entries with the name of the name must be compared.

[{/ oa

/ od

/ oa

Specifies that all differences and matches (match) will be displayed.By default, only the differences are listed.

/ od

Specify that only the differences are listed.This is the default value.

/ os

Specifies that only matching results will be displayed.By default, only new differences are listed.

/ on

Specifies that no results are allowed to be displayed.By default, differences will be listed.

/S

Compare all subkeys and entries recursively.

/?

Show help at thecommand prompt.

Reg command statement compare

The following table lists the return values ​​for the reg compare command

Parameters

Describe

0

The comparison process is complete and the results are the same.

first

The comparison process failed.

2

Compare successes and differences have been found.

The following table lists the icons displayed in the returned results:

Symbol

Meaning

=

Data of KeyName1 is equal to the data of KeyName2.

<

Data of KeyName1 is smaller than the data of KeyName2.

>

Data of KeyName1 is larger than data of KeyName2.

For example reg compare command

To compare all the values ​​in the key named MyApp with all the values ​​in the key named SaveMyApp, enter:

 REG COMPARE HKLMSoftwareMyCoMyApp HKLMSoftwareMyCoSaveMyApp 

To compare the Version values ​​in the key named MyCo and the Version values ​​in the key named MyCo1, type:

 REG COMPARE HKLMSoftwareMyCo HKLMSoftwareMyCo1 / v Version 

To compare all subkeys and values ​​in HKLMSoftwareMyCo on a computer named ZODIAC, with all subkeys and values ​​in HKLMSoftwareMyCo on the local computer, enter:

 REG COMPARE ZODIACHKLMSoftwareMyCo. /S 

See more:

  1. The qprocess command in Windows
  2. Qappsrv (query termserver) command in Windows
  3. The quser (query user) command in Windows
  4. The pubprn command and the pushprinterconnections command in Windows

 

4 ★ | 3 Vote

May be interested

  • How to use the option equivalent to the 'ls' command in WindowsHow to use the option equivalent to the 'ls' command in Windows
    the 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
  • The LIKE command in SQLThe LIKE command in SQL
    in sql, the like command is used to compare a value with similar values ​​by using wildcards.
  • The command reg add in WindowsThe command reg add in Windows
    the reg add command adds new subkeys or entries to the registry.
  • Compare Windows 7 versionsCompare Windows 7 versions
    it can be said that, in the history of windows operating system, the two most popular operating systems to date are windows 7 and windows 10. these are also the two versions of windows with the most versions. within this article, we will compare windows 7 versions, see how they have similar and different features.
  • Rem command in WindowsRem command in Windows
    the rem command helps write comments (comments) in a batch file or config.sys.
  • Instructions for using Command PromptInstructions for using Command Prompt
    deep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
  • Rd command in WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • The sfc command in WindowsThe sfc command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)