Did you try to use Sysinternals (now Microsoft) BGInfo on Windows Vista or Windows Server Codenamed "Longhorn"? Do you also prefer to see your network-settings such as IP-Adress and DNS-Server on the Background-Screen of BGInfo?
So did you like the picture you've got? Here's an example:
So apparently we are getting nine IP-Addresses and nine DNS-Servers back, but only one is configured. However, we only want the one Address which is configured, not any virtual or whatever Network-Interface. We still can use BGInfo, but we need to put some more brain into it.
BGInfo also allows you to configure Scripts or custom variables, and return their value. So in BGInfo, follow these steps:
- In BGInfo, underneath the list box "Fields" where you are able to select which values to see, click "Custom"
- In the dialog box "User Defined Fields", click "New"
- In the dialog box "Define New Field", choose an "Identifyer", such as "MyIPAdress"
- Under "Replace identifyer with" click "WMI Query"
- In the text box "Path", enter the following WMI Query:
SELECT IPAddress FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE - Close the dialog box with OK and repeat from Step 2 to create another new field:
Identifier:
MyDNSServer
Path (WMI Query):
SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE
After you added MyIPAdress and MyDNSServer to your background, it'll look like the following:
