Batch Script – Registry - Comparing Registry Keys - Batch Script

Comparing registry keys is done via the REG COPY command.


  • Wherein Output − /od (only differences) /os (only matches) /oa (all) /on (no output).



If there is a difference between the values in either registry key, it will be shown in the output as shown in the following result. The following output shows that the value ‘EnableColorSelection’ is extra I the registry key ‘HKEY_CURRENT_USER\Console’.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Batch Script Topics