drewhill.net

COMPLETELY FULL OF I.T.

BGInfo Custom WMI Fields

with 4 comments

BGInfo, a really cool tool that allows you to create a custom bitmap images to use as your desktop wallpaper that can include things like your host name, IP address and other aspects of the PC’s configuration.  

Download: BgInfo v4.12

The image can be set to auto update by creating a shortcut and placing it in the Startup folder.  The shortcut target should be set to:

<path>:\bginfo.exe config.bgi /timer:0

The path is the location where bginfo.exe is saved and config.bgi is the saved configuration file to be used.

Sample:

bginfo

To add a custom field follow these steps:

  1. Click on the Custom button underneath the list of Fields.
  2. Click User Defined Fields dialog box click, New.
  3. In the Define New Field dialog box, type the name of the field (i.e. MyDNSServer).
  4. Click WMI Query radio button.
  5. In the path text box enter the WMI query (i.e. SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE)
  6. Continue the process for each custom defined field.
  7. Click OK to close the User Defined Fields dialog box.
  8. Add the custom fields to the background image.

I’ve come up with some custom fields that can be added to BGInfo.  Follow the steps above to add each of these fields.

Identifier WMI Query WMI Class
MyDNSServer SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE Win32_NetworkAdapterConfiguration Class
MyIPAddress SELECT IPAddress FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE Win32_NetworkAdapterConfiguration Class
MyManufacturer SELECT Manufacturer FROM Win32_ComputerSystem Win32_ComputerSystem Class
MyModel SELECT Model FROM Win32_ComputerSystem Win32_ComputerSystem Class
MyOS SELECT Caption FROM Win32_OperatingSystem Win32_ComputerSystem Class
MyOSArchitecture SELECT OSArchitecture FROM Win32_OperatingSystem Win32_OperatingSystem Class
MyServicePack SELECT ServicePackMajorVersion FROM Win32_OperatingSystem Win32_OperatingSystem Class
MyRoles SELECT Roles FROM Win32_NTDomain Win32_NTDomain Class

Written by Drew

April 4, 2008 at 12:25 pm

4 Responses

Subscribe to comments with RSS.

  1. This is great information. I’m building our first Win2008 server, and BGInfo shows it as Vista, with no IP address (I’m using teamed NICs). The WMI queries work perfectly. Thanks.

    Rob D.

    April 22, 2008 at 1:05 pm

  2. Awesome…this was a great help. Can you tell me how what WMI query u used to get the “Processors” as shown in your screen shot? Also, any other cool tricks you can post would be sweet. Thks again!

    Roger B.

    August 28, 2008 at 12:08 pm

  3. The Processors is already a field in BGInfo that you can select to add to the your background image. I think the latest version of BGInfo supports Vista and Server 2008 without having to create custom fields.

    Drew

    August 30, 2008 at 8:17 am

  4. I have pc’s with multiple NIC cards. I’d like to have an entry for each one individually. Any ideas how to do that?

    MikeA

    January 7, 2009 at 3:46 pm


Leave a Reply