It is often helpful when users can find the name of their device quickly and easily. Physical lettering doesn't always work everywhere.
A well-known solution for this is BGInfo (BgInfo - Windows Sysinternals | Microsoft Docs) For me, BGInfo is not always optimal on work devices, especially when the user has the option to change the background image himself. Depending on the resolution or the picture, the picture or the info display may be distorted.
Some time ago I switched to the program DesktopInfo (Desktop Info – Glenn's Page (delahoy.com)), which I am very satisfied with. With the correct configuration, the hostname is displayed on the wallpaper. The display can be formatted as desired. The Configuration for the Hostname on the Desktop can easily be distributed via Intune.
Glenn has various examples of this on his homepage: Desktop Info Gallery – Glenn's Page (delahoy.com)

Distribution via Microsoft Intune

I created a Win32 package for the automated distribution: scloud / DesktopInfo at main FlorianSLZ / scloud (github.com)

FileDescription
install.ps11. Open log
2. End existing DesktopInfo processes
3. Copy DesktopInfo.exe, hostname.ini and DesktopInfo.ps1 to the device
4. Create VBScript for program start
5. Create a scheduled task with the "Logon" trigger. --> Action: Start DesktopInfo with hostname.ini
6. Start the task
DesktopInfo.exeProgram file
DesktopInfo.ps1Starts the EXE with the argument of hostname.ini
hostname.iniDefines appearance of the PC name
DesktopInfo.pngImage for Win32 Package
check.ps1Checks the installation using the EXE version
uninstall.ps1Deletes the scheduled task and the local program data

For the logic of the Win32 app package I have my template as in the post "my take on win32 apps - Intune | scloud" described used.

Upload the intunewin file

Für die Logik des Win32 App-Paketes habe ich meine Vorlage, wie im Post "my take on win32 apps - Intune | scloud" beschrieben verwendet.

Upload der intunewin-Datei

Intune add win32 app
  • Select the install.intunwwin file and define at least the title and the publisher:
DesktopInfo app, Intune
  • Store installation and deinstallation commands as a system
Install command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -command .\install.ps1
Uninstall command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -command .\uninstall.ps1
installation parameters in Intune
  • Requirements 64bit and any Windows version.
  • Detection rule, check.ps1
Detection rule for DesktopInfo
  • We have no dependencies.
  • Assign and you're done.

Summary

DesktopInfo also makes it easy to display the host name on the device. This helps the support person to quickly refer the caller to the device. If the name concept is also cleverly chosen, the supporter can also derive part of the configuration from it.