> so what is my next option? i know "ipconfig" does get it what am i doing
> wrong or how can i ensure the data?
What ipconfig info are you actually talking about?
All ipconfig returns are the "DNS server addresses" that can be used for IP
address resolution, but this is not what WMI's "DNSDomain" is all about. The
DSN server addresses are found in the "DNSServerSearchOrder" property.
Willy.
>> > hello,
>> > i have gotten my code running well. it collect the network card
[quoted text clipped - 43 lines]
>>
>> Willy.
auldh - 25 Feb 2008 15:04 GMT
hello Willy,
i checked my code and i do collect the "DNSServerSearchOrder" this returns
the ip address for the DNS server.
i was looking for the "Primary DNS Suffix" string which a domain computer
usually has. that information i don't seem to find. maybe this is stored some
where else. i would like to collect for the local and remote computer.
> > so what is my next option? i know "ipconfig" does get it what am i doing
> > wrong or how can i ensure the data?
[quoted text clipped - 53 lines]
> >>
> >> Willy.
Willy Denoyette [MVP] - 25 Feb 2008 21:26 GMT
On a local system and supposing you are running on V2 of the framework, you
can get the DomainName property from the IPGlobalProperties
class(System.Net.NetworkInformation namespace).
On a remote system, you'll have to get the Domain property of
Win32_ComputerSystem using System.Management.
Willy.
> hello Willy,
> i checked my code and i do collect the "DNSServerSearchOrder" this returns
[quoted text clipped - 68 lines]
>> >>
>> >> Willy.