How to install BGInfo Silently using SCCM

The following process details how to create a silent install package for BGInfo.

It can be used as a silent installation deployment or included into your Windows 7 deployment method.

It has been tested and confirmed as working with BGInfo 4.16 and SCCM R2 (OS Deployment)


It does the following tasks:

  • Creates a folder for BGInfo – C:\bginfo
  • Copies bginfo.exe to the folder
  • Copies configuration file (wstat.bgi) to the folder
  • Creates a registry entry to enable BGInfo to run automatically when a user logs on

Full Download: 

Please Note:

BGInfo does not support the Windows 7 feature of rotating desktop pictures (multiple pictures that change every few minutes). This is because each time you log on BGInfo makes a copy of your current theme (background, colours, font sizes etc.) and applies the customisations in the BGInfo configuration.

If you open the ‘Personalize’ window you will see an ‘Unsaved theme’ with the set background picture.

How to customise and deploy (silent install) BGInfo:

    1. Download the latest version from
    2. Open Bginfo
    3. Customise as required and save the configuration (File -> Save As) as wstat.bgi
    4. Create a vbs file called install.vbs and copy in the following information
' BGinfo Installation Script
' Script Details:
' --------------
' This script copies the BGinfo files to the C:\bginfo folder and sets the run registry key
Option Explicit

'Declare Variables and constants
Dim objShell, objFSO, intErrorCode

'Create objects
Set objShell = CreateObject("WScript.Shell")
Set objFSO = createobject("scripting.filesystemobject")

'Main body
On Error Resume Next

'Create the c:\bginfo folder
If not objFSO.FolderExists("C:\bginfo") Then
End If

'Copy the bginfo files
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\Bginfo.exe", "C:\bginfo\")
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\wstat.bgi", "C:\bginfo\")

'Add the bginfo shortcut to the run registry key
intErrorCode = intErrorCode + objshell.RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\bginfo", "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0", "REG_SZ")

objShell.Run "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0"
Set objShell = Nothing
Set objFSO = Nothing

'return errorcode for install to SCCM
  1. Copy the installer file, wstat.bgi and install.vbs to your software package share
  2. You can now create your SCCM package or deploy the software by using install.vbs

For more information on creating SCCM packages see distribute software using SCCM.

Related Articles

5 comments on “How to install BGInfo Silently using SCCM

  1. If you’re looking for more instructions on how to use SCCM for deploying packages, give this a read:

    [url=]SCCM – How to Distribute Software Packages[/url]

  2. Hi,

    Running on Windows 7 Enterprise and SCCM 2007 R3.

    I have tried the above and it works fine, however the only issue I have is that when bginfo is run, it brings up the windows security message everytime.

    How do I get rid of that?

    And also the task sequence waits for me to hit enter when trying to run the vbscript.

    Any help appreciated.

  3. Hi Brant – Thanks for pointing the typo. It’s now been corrected.
    The bginfo.lnk was a legacy file we used to manually refresh bginfo. It pointed to [i][b]C:bginfoBginfo.exe /ic:bginfowstat.bgi /timer:0[/b][/i]

  4. Why does this try to copy a bginfo.lnk file that you don’t specify, and also I had to correct a typo on line 25 “objFSO.FolderExist[b]s[/b]”. Lastly, the script is not creating the run entry in the registry for me (Win2k3 SP2).

Leave a Reply

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