How to Set BGInfo to Display Only The Active Network Card’s IP Address

BGinfo is the best tool to display computer information on the desktop wallpaper but customizing it for the actual need is pretty hard unless you know the windows functions in deep level. BGInfo has custom keys defined for common use but sometimes we will need to dig some deeper for a fine tuned result.

We will be looking at how to display the IP Address from the active network adaptors because sometime we may have virtual network adaptors on clients. (If you have Cisco VPN clients you will have such adaptors) In such instances you will see some network card information on the BGInfo without IP Address. It will look odd on your desktop wallpaper!

This will happen if we use the default IP Address field on the BGInfo. So Instead of that we will be creating a custom IP Address field which will only display the IP Address from currently active on the computer.

If you follow the below method you can create a custom field for it.

1) Open the BGInfo and Click on the Custom Button.

bginfo_1

2) Then Click on New. It will pop up the box for defining a custom field.

bginfo_2

3) Now set the Identifier name something like below and Select WMI Query. After that copy the below command and paste in the Path field. Then click OK

SELECT IPAddress FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True

4) Once the custom field is applied you will see the custom field is displaying on the BGInfo main window. That’s it you can now add that field and create new customization file.

bginfo_3

This customization is most widely required in BGInfo usage. You can explore more such custom fields if you click on the Browse button in the Custom field creation Window.

17 Comments on "How to Set BGInfo to Display Only The Active Network Card’s IP Address"


      1. I think by “cut it” he meant that the result shows the IP address followed by the MAC address, and he wonders how to truncate the result so that the MAC address is not shown; I.e., how can one display only the IP address?

        Reply

  1. Thank you for the WMI Query, works great, But, still shows the “0 b/s” for the wireless NIC that is not currently enabled on my system. Is there a way to remove the ‘0 b/s’ ?

    Reply

    1. Hi Stephen, Did you perform a computer restart after disabling the Wifi? If you have configured the BGinfo to run on system startup it will give you only the active adaptor’s details. If that is not the case post a screenshot?

      Reply

  2. Hi,
    I done the same configuration and it works for IP,but subnetmask is coming including none also.
    what has to be done for subnetmask

    Reply

  3. Thanks SOOOO much for posting this – is there a way to do this for the default gateway and the dns ?

    Reply

    1. Sorry found DNS and gateway
      SELECT DefaultIPGateway FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True
      SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True

      What I’m now looking for is a way to only show the active network card and their speed next to each other.

      Reply

      1. LOL – sorry – I think I’ve gone as far as I can – I got the active cards listed but what I want is the active card and the active cards speed right next to each other. I got just the active cards but can’t get the speed listed next to it.
        SELECT NetConnectionID FROM Win32_NetworkAdapter WHERE NetConnectionStatus = 2 (even this is not correct – it shows me active cards – I think I’d like to show cards that have IP addresses.

        If I use the generic speed field already as a choice – it shows 4 Gb/s instead of 10Gb/s and it only lists those for all cards below the other info – I want it next to the card so I know which his which.

        Reply

  4. Super bummed that I am unable to find a way to parse out the IPv6 info that comes after the IP address. I’ve tried many things and found ways to do it in PowerShell but none in the BGInfo query selection screen. Having that info will only confuse our users when reading their IP and not sure if turning IPv6 off company-wide is a solution right now.

    Reply

  5. Hi there,I check your new stuff named “How to Set BGInfo to Display Only The Active Network Card’s IP Address | Renjith Menon” daily.Your humoristic style is awesome, keep doing what you’re doing! And you can look our website about proxy list.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.