Compare keys and their values in the registry. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/reg-compare.
reg compare {{key_name1}} {{key_name2}}
reg compare {{key_name1}} {{key_name2}} /v {{value}}
reg compare {{key_name1}} {{key_name2}} /s
reg compare {{key_name1}} {{key_name2}} /os
reg compare {{key_name1}} {{key_name2}} /oa
reg compare {{key_name1}} {{key_name2}} /on