How can I display host name on windows desktop
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.
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.
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.