Solved

Wildcard folder in the registry

This is a general Windows question but the OS I am tyring to do it on is XP.
I have a registry key located :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DNSRegisteredAdapters\{44BBB58A-2978-41DC-A166-CDDE5F11B715} (Inside there the PrimaryDomainName key which I will be accessing)
The last bit in brackets is unique as far as I can tell on a per machine basis.

What I want to do is specify that path but with a wildcard basically say whatever sub folder is in \DNSRegisterAdapters\ (ie .....\DNSRegisteredAdapters\*****\) add the key PrimaryDomainName is mydomain.org in the ***** directory. Is there any way to specify a wildcard for that?
2 answers Last reply Best Answer
More about wildcard folder registry
  1. Best answer
    In a way, you can do a vbscript that searches the key and does something in each place it finds that meets your criteria.

    http://nerds-central.blogspot.com/2008/03/recursive-registry-hive-listing-for.html

    I'm sure there are other methods, this is the one I know about.
  2. Best answer selected by Snipergod87.
Ask a new question

Read More

Internet Explorer Registry Windows XP