Summary
This blog details how to install and configure BGINFO to start on multiple servers.
What is BGINFO?
BGINFO stands for “Background Information”. This program will allow users to display computer details on the desktop wallpaper. This is very handy when working with multiple virtual servers that all have the same default background.
Example:
Get the file here: BgInfo – Windows Sysinternals | Microsoft Docs
Configrue your desired settings
Start bginfo64.exe on your source server and configure your settings.
This can be many just about anything:
- EnvroEnvironment Variables
- Registry Values
- WMI Queries
- File Version Info
- File Time Stamps
- Content of a file
- VB Scripts
Here is the one I’m using for example.
Save your desired settings with the “.bgi” extension in your source folder.
The script
The following script will do the following:
- Read a list of servers
- Create a “c:\install\bginfo” folder on all servers.
- Copy the content of C:\install\bginfo” from the source servers too all destination servers.
- Create a startupbginfo.cmd to the “Startup” group on all destination servers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#Settings folder and Server List $servers = Get-Content 'C:\Install\BGInfo\servers.txt' $rootdir = 'C:\install' $source = 'C:\Install\BGInfo\*' $source2 = 'C:\Install\BGInfo\startbginfo.cmd' #Starting Loop foreach($server in $servers){ $targetdir = '\\' + $server + '\c$\install\bginfo' #Make a new folder(s) if they don't exist if(!(Test-Path -Path $rootdir)){ New-Item -ItemType directory -Path $rootdir } if(!(Test-Path -Path $targetdir)){ New-Item -ItemType directory -Path $targetdir } #Copy Bginfo Files to All Servers Copy-item $source -Destination $targetdir #Copy the settings file to start group of each server $startup = '\\' + $server + '\c$\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup' Copy-item $source2 -Destination $startup } #Copy the settings files to the start of the local server (DC) Copy-item $source2 -Destination 'c:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup' |
Source Files:
Startup File:
startupbginfo.cmd
1 2 |
@echo off "C:\install\BGInfo\Bginfo64.exe" "C:\install\BGInfo\settings.bgi" /timer:0 /nolicprompt |
The end Result!
Every server in the “Servers.txt” file will your custom background after logging into the PC.
Here is mine:
I hope this was helpful!