I have a 开发者_开发百科.NET app that does the following:
Connect to a remote machine with the StdRegProv class from WMI.
Query a subkey for all of its sub keys.
In each of those sub keys (about 60 or so sub keys), download all of the registry values (about 10 or so values).
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.
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.
Does anyone know of a better way to download lots of registry values over a 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.
One of the requirements is to not have any third-party software on the remote machine. I'm limited to native Windows technologies (e.g. WMI, Remote Registry Service, etc.). That also means I have no control over compression.
Write yourself a proxy service and roll it out with a policy
精彩评论