Thanks for your reply! And yes this works.

But back to this query:

WMIQuery("DNSHostName", "Win32_NetworkAdapterConfiguration", @WkSta, "IPEnabled", "TRUE")

WMIQuery("IPAddress", "Win32_NetworkAdapterConfiguration", @WkSta, "IPEnabled", "TRUE")

It returns the hostname, but doesn't return the IPAddress!

Greetz