Sign in with
Sign up | Sign in
Your question
Solved

Wildcard folder in the registry

Last response: in Windows XP
Share
April 15, 2011 4:20:48 PM

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?

Best solution

April 15, 2011 5:00:21 PM

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-reg...

I'm sure there are other methods, this is the one I know about.
Share
April 21, 2011 7:28:47 PM

Best answer selected by Snipergod87.
m
0
l
!