简体   繁体   English

WAN友好的远程注册表读取

[英]WAN friendly remote registry reads

I have a .NET app that does the following: 我有一个执行以下操作的.NET应用程序:

  1. Connect to a remote machine with the StdRegProv class from WMI. 使用WMI中的StdRegProv类连接到远程计算机。

  2. Query a subkey for all of its sub keys. 查询子项的所有子项。

  3. In each of those sub keys (about 60 or so sub keys), download all of the registry values (about 10 or so values). 在每个这些子项(大约60个左右子项)中,下载所有注册表值(大约10个左右值)。

Over a WAN with a 1.5 Mbps link, it takes about a minute to download the contents of each sub key in step #3... so the whole process finishes in about a hour. 通过具有1.5 Mbps链接的WAN,大约需要一分钟的时间来下载步骤3中的每个子密钥的内容……因此整个过程大约需要一个小时。

I have a feeling if I did one bulk download of all sub keys and contents, this process would take much less than a hour, but I can't find any API for this. 我有一种感觉,如果我批量下载了所有子键和内容,此过程将花费不到一个小时的时间,但是我找不到用于此的任何API。

Does anyone know of a better way to download lots of registry values over a WAN? 有谁知道通过WAN下载大量注册表值的更好方法? I'll be testing this with the Remote Registry Service as well, but the APIs look similar to WMI's StdRegProv, so I'm not sure if its going to be any better. 我还将使用远程注册表服务进行测试,但是这些API看起来与WMI的StdRegProv相似,因此我不确定它是否会更好。

One of the requirements is to not have any third-party software on the remote machine. 要求之一是远程计算机上没有任何第三方软件。 I'm limited to native Windows technologies (eg WMI, Remote Registry Service, etc.). 我仅限于本机Windows技术(例如WMI,远程注册表服务等)。 That also means I have no control over compression. 这也意味着我无法控制压缩。

为您自己编写代理服务,并通过政策进行推广

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM