snippetbashTip
reg compare — Compare keys and their values in the registry. More information: <https://learn.microsoft.com/window
Viewed 0 times
keyscommandandreg comparevaluesclitheircompare
windows
Problem
How to use the
reg compare command: Compare keys and their values in the registry. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-compare>.Solution
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}} /sOnly [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}} /oaCompare two keys, [o]utputting [n]othing:
reg compare {{key_name1}} {{key_name2}} /onCode Snippets
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}} /sOnly [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}} /oaContext
tldr-pages: windows/reg compare
Revisions (0)
No revisions yet.