How can I display host name on windows desktop

32

11

I do a lot of work on Windows Server 2008 remote desktops and often lose track of which host I am currently logged on to.

Is there a way of displaying (without installing any non-standard apps) the host name or IP address of the host I am connected to in either the wallpaper or the notification area?

I tried creating files in the desktop with the name of the machine - but my roaming profile shows the same set of desktop files on every machine, so that was scuppered. Duh!

In shell windows this is easy: just set the prompt to display the host name. Surely there is a simple way of doing the same for the graphical desktop.

Martin

Posted 2010-12-04T08:10:41.380

Reputation: 455

Answers

40

You are looking for Microsoft's Sysinternals BgInfo. It is very customizable. Not to mention it comes straight from Microsoft for free.

How many times have you walked up to a system in your office and needed to click through several diagnostic windows to remind yourself of important aspects of its configuration, such as its name, IP address, or operating system version? If you manage multiple computers you probably need BGInfo. It automatically displays relevant information about a Windows computer on the desktop's background, such as the computer name, IP address, service pack version, and more. You can edit any field as well as the font and background colors, and can place it in your startup folder so that it runs every boot, or even configure it to display as the background for the logon screen.

Screenshot of BgInfo

SgtOJ

Posted 2010-12-04T08:10:41.380

Reputation: 6 843

It should be noted that bginfo essentially modifies your background image. I can think of two disadvantages using this method:

  1. If you use the same login credentials on multiple machines, assuming those credentials store your personal settings (like backgrounds), you could end up having the IP address of the machine where the information was initially created being displaying incorrectly as the IP address for other machines.

  2. Having a rotating/slideshow background will wipe out the information when the background changes.

  3. < – basiphobe – 2015-11-11T17:06:37.683

Thanks - this looks very good. Now to see if I am allowed to install it. – Martin – 2010-12-04T08:37:22.417

7

This questions is now 8 years old. BGInfo doesn't seem to work with Windows 10 desktop backgrounds. That is, background images behind the text that BGInfo should be writing on top of. It does work entirely correctly on top of a solid color background as far as I could tell. Pete's registry key didn't work (able to change permissions, had no effect), and I'm not trying that sketchy URL.

So here's a nice simple solution that takes literally 5 seconds to setup:

Right-click on Taskbar -> Go to Toolbars -> Choose New Toolbar, type in \\%computername%, and Click Select Folder. Done.

Credit where credit is due.

Eliot Gillum

Posted 2010-12-04T08:10:41.380

Reputation: 171

I havent tried BGInfo on WIn 10 (as far as I can remember), but I find it hard to believe it doesnt work. Especially since it was updated last year. Still this is a neat idea. – Keltari – 2018-09-23T08:19:44.940

Sorry, my wording wasn't super clear. I wasted half an hour futzing with "it should foo when I push the foo button!" – Eliot Gillum – 2018-09-25T07:36:06.817

Now to find a way to do this using GPO – Beakie – 2020-02-24T23:30:32.190

Dump HKEY_CURRENT_USER, apply the above, dump again, diff. I'd bet my lunch money it'll be easy to see. – Eliot Gillum – 2020-02-26T00:46:35.947

6

Find key HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}

I usually rename to OLD.LocalizedString and create a new string but some people simply modify the value... it's up to you.

Edit it reads:

Name = LocalizedString Type = REG_EXPAND_SZ Data = %COMPUTERNAME%

You can also display user name data value = %USERNAME% on %COMPUTERNAME%

It's valuable in disk imaging as when you deploy and give the computer name you'll always have it. You may need to change permissions on the key. Right click on the key and select permissions.

Pete

Posted 2010-12-04T08:10:41.380

Reputation: 61

I'm getting an error saying that Cannot edit LocalizedString: Error writing the value's new contents when I try to modify the value (Win8.1, ran regedit as an administrator) – Henno – 2014-05-30T13:40:46.357

After changing registry key permissions (owner) to be able to modify the string, the result was that now literally %COMPUTERNAME% is displayed Windows 8 Classic Shell Start Menu for "This Computer" – Henno – 2014-05-30T16:43:34.987

3

Put BGINFO on a network share and add it to a local logon script or a batch file to the startup folder for all users.

There is a switch to supporess the license warning at first run and you can create an optional configuration file that determines what parameters are displayed.

e.g. BGINFO.BAT

@echo off
bginfo bginfo.bgi /TIMER:0 /SILENT /NOLICPROMPT /LOG:Q:\bginfo\log.txt

There is even an option to have it add the computer information to an excel spreadsheet. I have used that in the past to gather configuration information on the workstations

Mike Row

Posted 2010-12-04T08:10:41.380

Reputation: 141

2

Or, requiring no external tools; Make a bat file, placed in a startup folder with content such as;

echo %COMPUTERNAME% > "c:\users\Public\desktop\%COMPUTERNAME% - is this machine"

reben

Posted 2010-12-04T08:10:41.380

Reputation: 172

0

Try this tool, much easier to use for default information, and no license warning to worry about: http://mountwhite.net/en/setwallpaper.html

Bob

Posted 2010-12-04T08:10:41.380

Reputation: 9

That site looks very dubious. It triggers HTTPS warnings in browsers, serves unsigned .exe downloads over unencrypted HTTP, has broken links, weird website design, no contact details, is advertised as "100% CLEAN Certification", ... I would strongly suggest not downloading anything from that website. – Zero3 – 2018-05-04T18:30:24.273

2Having not seen this program before, can you describe why it's a good solution compared to other products, how you found it, and if there's any association between you and the product's creator? Thanks – Canadian Luke – 2013-10-28T20:55:01.037