Configure and deploy BGInfo using GPO on Windows Server 2012 R2

Configure Bginfo

Download BGInfo from https://technet.microsoft.com/en-us/sysinternals/bb897557.aspx

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

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

1

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

2

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

3

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.

4

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

5

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

WHERE IPEnabled=True

Click OK

6

Click OK

7

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

Select New

8

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

9

Click OK

10

Click OK

11

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.

12

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

13

You should have three files now

14

Copy the files to:

\\yourdomainname\NETLOGON\Bginfo

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

C:\Windows\SYSVOL\sysvol\yourdomainname\scripts\BGInfo

 

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

16

For Path type C:\Bginfo

Click OK

17

Click on Files and then right-click New/File

18

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

Destination File: C:\Bginfo\Bginfo.exe

Click OK

19

We’ll create another file

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

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

Click OK

20

Click on Shortcuts and then right-click New/Shortcut

21

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

22

Close the Group Policy Management Editor

Link the Group Policy to your VMs location

23

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

Advertisements

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!

    Like

  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.

    Like

  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

    Like

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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