Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show username, hostname, and IP address on desktop

Status
Not open for further replies.

zpetersen

MIS
Dec 29, 2003
58
US
I would be interested to know if anyone has ever done anything like this. This is something I would like to do in order to aid troubleshooting etc. When someone calls with an issue and I want to remote into their machine all I have to do is ask them what their screen lists for Hostname etc.

I would like to be able to apply this via GPO and I would imagine it would have to be done with some kind of scripting like VBScript. Anyone have any ideas? Or have you done anything similar?
 
Thanks Steve, I will take a look at that but I am a little reluctant to use an app to do this. I was browsing through the logon script faq faq329-5798 and noticed this little bit of code:

Code:
'Configure the PC to show the Windows Version and Service Pack
'as an overlay to the desktop above the System Tray
'=====================================
HKEY_CURRENT_USER = &H80000001
strComputer = WSHNetwork.Computername
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Control Panel\Desktop"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "PaintDesktopVersion"
dwValue = 1
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue

Im wondering if there is a way to add to or chang the information that is used above.
 
Did you get that code to work? I use a lot of Marks logon script and added that code to it. I logged off/on a couple of times and it did not work. No error messages, just nothing happened.
 
I have yet to try it. I posted this in the VBscript forum and he replied stating that it wouldnt work for what I wanted so I didnt really pursue it any further.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top