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