Okey thx for reply. I am running SCCM and and I have a Task sequence, that neeed to rund only if the right condition is true. So to do a WQL and se if there is a match beweet the client DNS and the Task DNS. The client will start the right task.
I need to query for the client DNS , and if that condition is true. The client wil start the right task.
So I need a way to run a WMI query that resolves the DNS server.
SELECT * FROM Win32_NetworkAdapterConfig
I am having trouble with the DNSserversearchorder, is there another class to use?
Main Topics
Browse All Topics





by: xxdcmastPosted on 2009-10-27 at 05:12:48ID: 25671458
Try saving this code as a vbs file. This will run the query you mentioned above for the DNSserversearchorder. On my machine when I run it it does return the results for my two DNS servers.
What exactly are you trying to do maybe I can offer a suggestion?
Select allOpen in new window