如何将脱机.reg文件与远程计算机的注册表值进行比较? [英] How to compare offline .reg file with the registry values of remote machine?

查看:98
本文介绍了如何将脱机.reg文件与远程计算机的注册表值进行比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们出于开发和测试目的对计算机注册表进行了一些更改.我有一个经过清理的.reg文件,我认为是正确的文件.

We do some changes in machine registry for dev and testing purposes. I have a sanitized .reg file which I consider the correct one.

在开始开发/测试活动之前,我需要将此经过清理的.reg文件与我们的远程服务器进行比较,以便了解键值(如果有)中的更改.

Before I start my dev/test activities I need to compare this sanitized .reg file with our remote server so as to know the changes in key values if there are any.

我检查了RegistryKey类,它支持当前计算机注册表值和远程计算机注册表值,但不支持脱机.reg文件.

I checked RegistryKey class, it supports current machine registry values and remote machine registry values but not the offline .reg files.

我知道需要迭代和比较的路径和树.我的想法是将两个注册表项一起迭代到同一路径并进行比较.

I know the path and tree which I need iterate and compare. My idea was to iterate both registrykeys together for the same path and compare it.

有人可以在这里帮忙吗?

Can somebody please help here?

谢谢

Vivek

推荐答案

也许可以通过 REG 命令行工具使用'提取数据REG EXPORT some_key some_file'表格.它将生成一个.reg文件.然后使用一些比较工具或Visual Studio比较文件.最简单的是 FC 系统工具.

Maybe extract the data with REG command-line tool using the ‘REG EXPORT some_key some_file’ form. It will generate a .reg file. Then compare the files using some comparison tools or Visual Studio. The simplest is the FC system tool.


这篇关于如何将脱机.reg文件与远程计算机的注册表值进行比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆