BGInfo Custom WMI Fields
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:
To add a custom field follow these steps:
- Click on the Custom button underneath the list of Fields.
- Click User Defined Fields dialog box click, New.
- In the Define New Field dialog box, type the name of the field (i.e. MyDNSServer).
- Click WMI Query radio button.
- In the path text box enter the WMI query (i.e. SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE)
- Continue the process for each custom defined field.
- Click OK to close the User Defined Fields dialog box.
- 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 |















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
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
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
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