Configure and deploy BGInfo using GPO on Windows Server 2012 R2

Configure Bginfo

Download BGInfo from

Once the download is completed and extracted there will be two files.

By opening Bginfo.exe, the Default configuration will open.


If we use the default IP Address field here in some cases we might end with a result of couple (none) fields.


In order to fix that we’ll have to create a new Custom Field.

On the right side click on Custom and click on New


Type an identifier name that is different from “IP Address” as there is already one with that name.

“IP Address” or “IP_Address” will do the trick here. Click on WMI Query and then Browse.


From the drop-down menu of WMI Class select Win32_NetworkAdapterConfiguration, Class Property: IPAddress


In order to remove the (null) entries add the following to the WMI query:

WHERE IPEnabled=True

Click OK


Click OK


If you are creating a configuration file for virtual machines is good to have the host name.

Select New


Identifier: VM Host

Select Registry value and check 64-bit registry view

For Path type:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\PhysicalHostName

Click OK


Click OK


Click OK


Depends on what exact information you need on the screen edit the defaults. Remember to use the new IP Address field that we’ve created instead of the built-in one.

Once you are ready click on File and Save As.


Type name and click on Save (the file should be in the same directory as bginfo.exe)


You should have three files now


Copy the files to:


If you have some issues with permissions you can login to your domain controller and copy the files in:



We are ready to configure the Group Policy.

Login to your Domain Controller and open Group Policy Management.

Create a new Group Policy Object and name it accordingly your standards.

Right-click on the newly created GPO and click Edit.

Navigate to Computer Configuration/Preferences/Windows Settings/Folders

Right-click and select New/Folder


For Path type C:\Bginfo

Click OK


Click on Files and then right-click New/File


Source file(s): \\yourdomain\NETLOGON\Bginfo\Bginfo.exe

Destination File: C:\Bginfo\Bginfo.exe

Click OK


We’ll create another file

Source file(s): \\yourdomain\NETLOGON\Bginfo\bg-vm.bgi

Destination File: C:\Bginfo\bg-vm.bgi

Click OK


Click on Shortcuts and then right-click New/Shortcut


Name: bginfo

Target type: File System Object

Location: All Users StartUp

Target path: C:\BGInfo\bginfo.exe

Arguments: C:\BGInfo\bg-vm.bgi /SILENT /TIMER:0 /NOLICPROMPT

Click OK


Close the Group Policy Management Editor

Link the Group Policy to your VMs location


After a while the folder structure and files will be populated on your virtual machines


10 thoughts on “Configure and deploy BGInfo using GPO on Windows Server 2012 R2

  1. Just want to say thanks for this, had BGInfo set up on an old DC using a bat file was a bit messy, this works much easier since the old DC was decommissioned and broke the links in the file!


  2. Thanks for sharing. I found I had to do one extra step, when putting bginfo.exe in the NETLOGON folder, I had to press the Unblock button in it’s properties to prevent a warning dialog on startup.

    One other point to note – extracting the VM’s host from the registry is for Hyper-V only – that registry key doesn’t exist in VMWare.

    Otherwise it worked like a charm.


  3. I did exactly what you did and it is not working for me. I am not sure what I am doing wrong. Its server 2012 with windows 8.1 computers. Right now Im just applying the GPO to Admins for testing purposes


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s