I am trying to build an app object that will push a domain name and
primary domain name via the registry. The problem is that the adapter
address will be different for every machine. (see the reg entry below)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Tcpip\ Parameters\DNSRegisteredAdapters\{%variable
address%}\DomainName or PrimaryDomainName

How do I query the registry to get the correct address for each
machine? Is there any scripting I can use to accomplish this?