2018-01-25 10:11:44 +00:00
|
|
|
# reg compare
|
|
|
|
|
|
|
|
> Compare keys and their values in the registry.
|
2019-08-22 13:37:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/reg-compare>.
|
2018-01-25 10:11:44 +00:00
|
|
|
|
|
|
|
- Compare all values under a specific key with a second key:
|
|
|
|
|
|
|
|
`reg compare {{first_key_name}} {{second_key_name}}`
|
|
|
|
|
|
|
|
- Compare a specific value under two keys:
|
|
|
|
|
|
|
|
`reg compare {{first_key_name}} {{second_key_name}} /v {{value}}`
|
|
|
|
|
|
|
|
- Compare all sub keys and values for two keys:
|
|
|
|
|
|
|
|
`reg compare {{first_key_name}} {{second_key_name}} /s`
|
|
|
|
|
|
|
|
- Only output the matches between the specified keys:
|
|
|
|
|
|
|
|
`reg compare {{first_key_name}} {{second_key_name}} /os`
|
|
|
|
|
|
|
|
- Output the differences and matches between the specified keys:
|
|
|
|
|
|
|
|
`reg compare {{first_key_name}} {{second_key_name}} /oa`
|