Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Active Directory / Display System Info on Desktop with BGInfo

February 6, 2025

Display System Info on Desktop with BGInfo

When managing a large fleet of servers and workstations, it is useful to have basic information about the computer displayed on the system desktop. For example, it can include the computer’s hostname, domain info, IP and MAC addresses, Windows version and build, CPU type, RAM, free disk space, technical support contacts, etc. Microsoft’s BgInfo tool allows to query system information and display it directly on a user’s desktop as a background. BgInfo overlays text information over the user’s desktop wallpaper and replaces the current wallpaper image.

Contents:
  • Create a Bginfo Text Template to Display on the Desktop
  • Applying Bginfo Wallpaper to Domain computers via GPO
  • Bginfo: Get System Info Using VBS or PowerShell Script
  • Show System Information on the Windows Lock Screen

Create a Bginfo Text Template to Display on the Desktop

First, create a template file that Bginfo will use to show information on a Windows desktop.

  1. Download the Bginfo (https://docs.microsoft.com/en-us/sysinternals/downloads/bginfo) and run the bginfo.exe;
  2. Configure the information to be displayed on the user’s desktop in the Bginfo window;
  3. The Bginfo configuration window is a simple text editor where you can add, delete, or edit any of the displayed values, change the font color or size, the position of the info block on the screen, add your logo, etc.
  4. The list of available system values ​​that Bginfo can get from the operating system is available in the Fileds list on the right. Dynamic variables whose values must be obtained from the system are set in angle brackets. For example, <Host name>
  5. I created a simple template with basic information about the computer, and added the company logo and technical support contacts:
    Systeminfo:
    Computer Name:         <Host Name>
    Domain:          <Logon Domain>
    Username:       <User Name>
    OS Version:     <OS Version>
    Boot Time:      <Boot Time>
    IP Address:     <IP Address>
    RAM:  <Memory>
    Free Space:     <Free Space>
    __________________________________
    LOGO IMG
    HelpDesk Team: +49-163-555-5555
    [email protected]
  6. Click on the Preview button to see how the computer and user information from Bginfo will look on the desktop.  configure bginfo desktop template text file
  7. Save your configuration in the bg_config.bgi file.

Applying Bginfo Wallpaper to Domain computers via GPO

You can use domain Group Policy (GPO) to apply the Bginfo configuration file to all computers in an Active Directory domain.

Create a Bginfo folder in the NETLOGON directory on the domain controller (C:\WINDOWS\SYSVOL\sysvol\woshub.loc\SCRIPTS ) and copy the bg_config.bgi and Bginfo.exe files into it.

Create the batch script file apply_bginfo.bat in the same folder. This file applies the BgInfo settings to a computer:

reg add HKEY_CURRENT_USER\Software\Sysinternals\BGInfo /v EulaAccepted /t REG_DWORD /d 1 /f
%logonserver%\NETLOGON\Bginfo\Bginfo.exe %logonserver%\NETLOGON\Bginfo\bg_config.bgi /silent /TIMER:00 /nolicprompt

batch script to apply bginfo settings

  1. Open the Domain GPO editor (gpmc.msc), create a new Group Policy named bgInfoGPO and link it to the computer’s OU link BGO policy to computers OU
  2. Edit the GPO
  3. Go to User Configuration -> Policies -> Windows Settings -> Scripts (Logon/Logoff) -> Logon -> Scripts -> Add and specify  the UNC path to your script (for example, \\woshub.loc\NETLOGON\Bginfo\apply_bginfo.bat);
  4. Enable the GPO loopback processing mode to apply the GPO to users (if you have assigned it to the OU containing computer objects): Computer Configuration –> Administrative Templates -> System -> Group Policy -> Configure user Group Policy loopback processing mode = Enabled (Merge); Group Policy loopback processing mode
  5. To update Group Policy settings on the client, log off and log on to the computer. Check that the system information you have configured is displayed on the desktop.show windows system information on user desktop

BgInfo copies the current desktop background to BGInfo.bmp to the user’s %Temp% directory and puts your text on top of it. If you set the desktop wallpaper using the domain GPO, note that the BgInfo policy must be applied after our wallpaper policy. Change the order of the GPO links if necessary.

Use the gpresult command or the following tips if Group Policy settings have not been applied to the client.

Bginfo: Get System Info Using VBS or PowerShell Script

Bginfo comes with a set of predefined variables whose values can be displayed on the desktop. If you want to display other information about the system or environment, you can get any data from the computer using a WMI query, get from the registry, or from a VBS or PowerShell script.

To add custom values to BgInfo, click Custom -> New.

define new filed in bginfo

The tool allows to display:

  • An environment variable value
  • A registry parameter value
  • WMI query result
  • A file version
  • A file contents
  • Run a VBS script file

For example, the following WMI query shows the Windows build on a desktop:

SELECT BuildNumber FROM Win32_OperatingSystem

using wmi query in bginfo

Use the following VBS script to display computer model information on the desktop:

winmgt = "winmgmts:{impersonationLevel=impersonate}!//"
Set oWMI_Qeury_Result = GetObject(winmgt).InstancesOf("Win32_ComputerSystem")
For Each oItem In oWMI_Qeury_Result
Set oComputer = oItem
Next
If IsNull(oComputer.Model) Then
sComputerModel = "*no-name* model"
Else
If LCase(oComputer.Model) = "system product name" Then
sComputerModel = "Custom-built PC"
Else
sComputerModel = oComputer.Model
End If
End If
sComputer = Trim(sComputerModel)
Echo sComputer

bginfo -getting computer info via powershell script

Note that the VBS script must use Echo to return the value you want to see in BgInfo.

Bginfo doesn’t allow running PowerShell commands or scripts to get information directly. So, if you want to output the information from PowerShell to Bginfo, create a simple wrapper in the VBScript code. For example, the following VBS file runs a PowerShell command that gets the date the last security update was installed in Windows.

On Error Resume Next
Set objShell = CreateObject("Wscript.Shell")
Status = objShell.Exec("powershell.exe -Command (Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 1).InstalledOn").StdOut.ReadAll()
echo Status

use powershell code in bginfo query

Show System Information on the Windows Lock Screen

You can show the current desktop wallpaper with systeminfo on the Windows Lock Screen.

Lock screen settings are configured through the HKLM system registry key. To apply the new lock screen wallpaper to non-admin users, change the image path in the BGinfo settings (Bitmap -> Location) from the user’s %Temp% directory to %WinDir%\Temp\BGInfo.bmp.

change bginfo.bmp file path

Then, run the following startup script apply_bginfo_lockscreen.bat via the GPO section Computer Configuration -> Policies -> Windows Settings -> Scripts -> Startup.

set ImagePath=%WinDir%\Temp\BGInfo.bmp "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /V "LockScreenImage" /T REG_SZ /D "%ImagePath%" /F REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" /V "LockScreenImageStatus" /T REG_DWORD /D "00000001" /F REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" /V "LockScreenImagePath" /T REG_SZ /D "%ImagePath%" /F REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" /V "LockScreenImageUrl" /T REG_SZ /D "%ImagePath%" /F

show bgifo system info on lock screen

The computer’s login/lock screen will now also show all the necessary system information.

0 comment
9
Facebook Twitter Google + Pinterest
Active DirectoryGroup PoliciesPowerShellWindows 11Windows Server 2022
previous post
PowerShell: Get, Modify, Create, and Remove Registry Keys or Parameters
next post
Fix: Cannot Open Executable (.EXE) Files on Windows

Related Reading

How to Find the Source of Account Lockouts...

March 12, 2024

How to Refresh (Update) Group Policy Settings on...

August 13, 2024

Configuring Windows Firewall Rules Using Group Policy

March 15, 2024

Repairing the Domain Trust Relationship Between Workstation and...

May 16, 2024

Updating Group Policy Administrative Templates (ADMX)

January 24, 2025

Configuring Password Policy in Active Directory Domain

March 12, 2024

Checking Active Directory Domain Controller Health and Replication

May 15, 2025

Troubleshooting: Group Policy (GPO) Not Being Applied to...

March 15, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Configure Google Chrome Settings with Group Policy
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • How to Find the Source of Account Lockouts in Active Directory
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • Get-ADComputer: Find Computer Properties in Active Directory with PowerShell
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
  • Adding Domain Users to the Local Administrators Group in Windows
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top