How to Set DNS(using WMI)

W

william wang

i use the WMI Function ( Win32_NetworkAdapterConfiguration::
SetDNSServerSearchOrder)to Set DNS,
now work well, but i meet a problem,
how to i set primary dns and second dns all to empty, now i can only set
second dns to
empty(i finish this by set count of safearray to 1),but i don't know how to
set primary and second all to empty(setting count of safearray to 0 seems no
effect).
thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top