Deploying BGInfo using SCCM

So, its been a while, but lets start.

Today, I was googling how to deploy BGinfo Using SCCM. Everybody suggested on community to use GPO for this task.

I didn’t like that method because I like to have more info about deployment. Also we have AGPM Group policy in place and I hate all the authoring that comes with AGPM.

So the way I did it is that I created the config file, copy it on local disk and run script that kicks of the BGinfo.

So lets start,

First of all, download BGinfo and extract content. Start BGinfo.exe or Bginfo64.exe and create config file with desired information.

I used only essential ones.

Bginfo1
Example of information provided by BGInfo

The one issue that I had is that if you use IP Address from BGinfo Fields, I get lot of (none) fields that I didn’t like. The way I dodge this is that I created custom field and use WMI query for this.

To create this: Click Custom and  than New. Name it (Example: IP_address_WMI) and choose WMI Query.

Custom
Creating Custom WMI query for IP address

In path select WMI Class Win32_NetworkAdapterConfiguration – Class Proppery IPAddress and add WHERE IPEnabled=True  

BGinfoCustomQuery
Creating Custom WMI query for IP address

Now we have BGInfo Config file. Save it as you like and now we will create script for deployment.

First create simple scrip that will kick off BGInfo and save it as cmd or bat file. Save that script in same folder with rest of BGInfo Files.

"C:\BGInfo\BGInfo64.exe" "C:\BGInfo\workstations.bgi" /timer:0 /NOLICPROMPT

When script is created, create shortcut of that script, since we will copy that shortcut to startup folder.  Mine shortcut is called BGinfoStartup.lnk

BGinfoFolder
Content of BGInfo Folder

Next is to create simple script that is copying content from SCCM server to local storage on workstation/server.

 

So this is the script, save it as bat and name it as you like. (Mine is called FileCopy.bat)

if not exist "%~1" md "%~1"
xcopy /y /c "%~dp0BgInfo\*.*" "%~1"
xcopy /y /c "%~dp0BgInfo\BGinfoStartup.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\"

The way you call script is that you need to provide location where it will copy the content.  (example: FileCopy.bat C:\)

Now we have everything ready for SCCM deployment.

Copy the BGinfo Folder along with script “FileCopy.bat” that you created to  your SCCM server.

 

FolderStructure
Folder structure for Deployment

Navigate to Software Library -> Application Managment ->Packages and Create Package.

Name the package as you like and check This package contains source file and navigate to location that you copied BGInfo folder.
Click next (Standard Program)

BGinfoPackageName

BgInfoProgram
Click Brows and choose Script you created and add location where you want to copy it. In script we will create BGInfo Folder so its acceptable run it as FileCopy.bat “C:\”

Accept all defaults, distribute content and you have your BGinfo is ready for deployment.

3 thoughts on “Deploying BGInfo using SCCM”

  1. This is a great article. Just noticed one thing. “WHERE IPEnable=True” This doesnt work as it needs to IPEnabled as per your screenshot. Minor thing

    Like

Leave a comment

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