Install BgInfo with Group Policy

Please check out our video on how to install BgInfo using group policy. If you find this video helpful please subscribe to our channel.


Step 1: Download BgInfo
Download BgInfo software from Mircosoft: https://docs.microsoft.com/en-us/sysinternals/downloads/bginfo
E
xtract the download.
Create a folder called Backgrounds and copy the extracted Bginfo64.exe file to the Backgrounds folder.
Note: I remove the 64 from the name since I do not have any 32-bit machines running. 


Step 2: Background Images
Copy your desired background images to the Backgrounds folder that was created in Step 1. 


Step 3: Create BgInfo BGI files
Double click on the Bginfo.exe file that was copied into the Backgrounds folder. 
Organize the fields to your liking. Click apply to test the background. 

Once the fields are configured, set the background by clicking the background button.

Last save the configuration by selecting File -> Save As... Once all of your files are saved the Background folder should look similar to the one below. 


Step 4: Write Scripts for NETLOGON Folder
Create a new file called Titan-Bg.bat
Inside the file insert the following line. 

%SystemDrive%\Backgrounds\BgInfo\Bginfo.exe %SystemDrive%\Backgrounds\BgInfo\Titan-Bg.bgi /SILENT /TIMER:0 /NOLICPROMPT

Save the file and close.


Create a new file called Nebula-Bg.bat
Inside the file insert the following line. 

%SystemDrive%\Backgrounds\BgInfo\Bginfo.exe %SystemDrive%\Backgrounds\BgInfo\Nebula-Bg.bgi /SILENT /TIMER:0 /NOLICPROMPT

Save the file and close. 


Create a new file called Bginfo-copy.bat
Inside the file insert the following line. 

xcopy \\itlumberjack.net\NETLOGON\Backgrounds %SYSTEMDRIVE%\Backgrounds\ /q /e /y

Save the file and close.


Copy Background folder to NETLOGON folder.
Copy the three script into the NETLOGON folder. 


Step 5: Setup Computer Group Policy Object

Create a new GPO (Group Policy Object). Name the object Background-Copy
Edit the policy and navigate to Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)
Add the script BgInfo-copy.bat


Step 6: Setup User Group Policy Object

Create a new GPO (Group Policy Object). In this case, we will name our objects AL-Users-Background and GA-Users-Background. Make sure that these GPOs are in the corresponding OU (Organizational Unit) for the user group. 

For AL-Users-Background
Edit the policy and navigate to User Configuration -> Windows Settings -> Scripts (Logon/Logoff)
Add the script Nebula-Bg.bat

For GA-Users-Background
Edit the policy and navigate to User Configuration -> Windows Settings -> Scripts (Logon/Logoff)
Add the script Titan-Bg.bat


 Step 7: Testing
Run gpupdate /force on the workstation to update the policy. To verify that the policy has been applied run gpresult /r as administrator at the command line.
Logoff and log back on and the background will change and in the top right corner you will see that BgInfo has added the requested information.