1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 01:06:14 +02:00
tldr/pages/windows/reg-compare.md
Vitor Henrique 3e43dd97e2
reg*: improve pages (#12301)
* reg*: improve pages

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2024-03-07 10:15:02 +05:30

28 lines
804 B
Markdown

# reg compare
> Compare keys and their values in the registry.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-compare>.
- Compare all values under a specific key with another key:
`reg compare {{key_name1}} {{key_name2}}`
- Compare a specific [v]alue under two keys:
`reg compare {{key_name1}} {{key_name2}} /v {{value}}`
- Compare all [s]ubkeys and values for two keys:
`reg compare {{key_name1}} {{key_name2}} /s`
- Only [o]utput the matches ([s]ame) between the specified keys:
`reg compare {{key_name1}} {{key_name2}} /os`
- [o]utput the differences and matches ([a]ll) between the specified keys:
`reg compare {{key_name1}} {{key_name2}} /oa`
- Compare two keys, [o]utputting [n]othing:
`reg compare {{key_name1}} {{key_name2}} /on`