本地和远程机器注册表导出 [英] local and remote machine registry export

查看:82
本文介绍了本地和远程机器注册表导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有办法读取本地和远程机器注册表键和

创建一个文本视图(.txt输出)。


i现在看如何将本地和远程mahcine注册表导出

密钥到.reg文件格式通过C#。


这可以吗?

我需要研究什么才能做到这一点?


或是我需要Windows WinApi的地方?

i current have a way to read both local and remote machines registry keys and
create a textual view (.txt output).

i now looking for ways to do export of local and remote mahcine registry
keys into ".reg" file format via C#.

is this do able?
what do i need to research to do this?

or is where i need to windows WinApi?

推荐答案

2008年5月30日星期五13:15:01 -0700,auldh

< au *** @ discussion.microsoft.comwrote:
On Fri, 30 May 2008 13:15:01 -0700, auldh
<au***@discussions.microsoft.comwrote:

i current有办法读取本地和远程机器注册表

键和

创建一个文本视图(.txt输出)。
i current have a way to read both local and remote machines registry
keys and
create a textual view (.txt output).



在C#中?

In C#?


i现在正在寻找出口本地和远程mahcine注册表的方法/>
键入.reg文件格式通过C#。
i now looking for ways to do export of local and remote mahcine registry
keys into ".reg" file format via C#.



如果您已经有代码生成注册表的文本输出,那么大部分时间都是
。 .reg文件格式非常简单。你需要在方括号中指定特定的键路径,然后使用单独的

值。这是一个合理的完整讨论:
http://support.microsoft。 com / kb / 310516


除了遵循特定格式之外,我不会期望从您已有的代码中获得太多变化


If you already have code that produces text output of the registry, you''re
most of the way there. The .reg file format is extremely simple. You
just need to specify specific key paths in square braces, with individual
values following. Here''s a reasonable complete discussion:
http://support.microsoft.com/kb/310516

Other than following that specific format, I wouldn''t expect much changes
from the code you already have.


这可以吗?

我需要研究这项工作吗?
is this do able?
what do i need to research to do this?



如果你还没有使用.NET的注册表文本输出,你可能会想看看这个:b $ b想看这里: /> http://msdn.microsoft。 com / en-us / libr .... registry.aspx

Pete

If you don''t already have text output of the registry using .NET, you may
want to look here:
http://msdn.microsoft.com/en-us/libr....registry.aspx

Pete


Peter,

感谢您的回复。

是的我有C#代码来创建我想要的注册表项配置单元的文本文件。

但我读了2 kbs,我不知道如何使用C#来创建.reg文件

导出。

他们谈论使用regedit。我无法导出远程机器注册表键

这样。


我需要在.reg中创建一个导出文件。本地和远程的格式

服务器(机器)。

" Peter Duniho"写道:
Peter,
thanks for your response.
yes i have C# code to create a textual file of the registry key hive i want.
but i read the 2 kbs and i don''t see how to use C# to create the ".reg" file
export.
they talk about using regedit. i can not export remote machine registry keys
this way.

i need to create an export file in ".reg" format for both local and remote
servers (machines).
"Peter Duniho" wrote:

周五,2008年5月30日13:15:01 -0700,auldh

< au *** @ discussion。 microsoft.comwrote:
On Fri, 30 May 2008 13:15:01 -0700, auldh
<au***@discussions.microsoft.comwrote:

i current有办法读取本地和远程机器注册表

键和

创建文本视图(.txt输出)。
i current have a way to read both local and remote machines registry
keys and
create a textual view (.txt output).



在C#中?


In C#?


i现在正在寻找出口本地和远程mahcine注册表的方法/>
键入.reg文件格式通过C#。
i now looking for ways to do export of local and remote mahcine registry
keys into ".reg" file format via C#.



如果你已经有代码生成注册表的文本输出,那么你大部分时间都是
。 .reg文件格式非常简单。你需要在方括号中指定特定的键路径,然后使用单独的

值。这是一个合理的完整讨论:
http://support.microsoft。 com / kb / 310516


除了遵循特定格式之外,我不会期望从您已有的代码中获得太多变化



If you already have code that produces text output of the registry, you''re
most of the way there. The .reg file format is extremely simple. You
just need to specify specific key paths in square braces, with individual
values following. Here''s a reasonable complete discussion:
http://support.microsoft.com/kb/310516

Other than following that specific format, I wouldn''t expect much changes
from the code you already have.


这可以吗?

我需要研究这项工作吗?
is this do able?
what do i need to research to do this?



如果你还没有使用.NET的注册表文本输出,你可能会想看看这个:b $ b想看这里: /> http://msdn.microsoft。 com / en-us / libr .... registry.aspx

Pete


If you don''t already have text output of the registry using .NET, you may
want to look here:
http://msdn.microsoft.com/en-us/libr....registry.aspx

Pete


2008年5月30日星期五15:31:00 -0700,auldh

< au *** @ discuss.microsoft.comwrote:
On Fri, 30 May 2008 15:31:00 -0700, auldh
<au***@discussions.microsoft.comwrote:

感谢您的回复。

是的我有C#代码来创建注册表项配置单元的文本文件我想要。

但是我读了2 kbs,我没看到如何使用C#创建.reg

文件

导出。

他们谈论使用注册表。我无法导出远程机器注册表



这样。


i需要在.reg中创建导出文件;本地格式和

远程

服务器(机器)的格式。
thanks for your response.
yes i have C# code to create a textual file of the registry key hive i
want.
but i read the 2 kbs and i don''t see how to use C# to create the ".reg"
file
export.
they talk about using regedit. i can not export remote machine registry
keys
this way.

i need to create an export file in ".reg" format for both local and
remote
servers (machines).



我提供的第一篇文章记录了.reg文件格式。我不是知道.NET中有任何支持自动编写格式(尽管它可能还存在
)。但格式是如此简单,如果你已经有_ / $
代码以_any_格式发出注册表信息,那么你不应该花费超过15分钟的时间来获得
更改代码以符合

实际.reg文件格式。在外面30分钟。


哎呀...从头开始,整个事情应该最多工作几个小时,

并且对某人已经更快非常熟悉.NET。


Pete

The first article I provided documents the .reg file format. I''m not
aware of any support in .NET to write the format automatically (though it
might yet exist). But the format is so simple that if you already have
code to emit the registry information in _any_ format, it shouldn''t take
you more than 15 minutes or so to change the code to comply with the
actual .reg file format. 30 minutes at the outside.

Heck...from scratch, the whole thing should a few hours work at the most,
and quicker for someone already very familiar with .NET.

Pete


这篇关于本地和远程机器注册表导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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