Hello Justin,

Apart from the scripting answers you got, here's a different solution:

Rename My Computer on any workstation to WHATEVER-I-DONT-GIVE-A-D. Open up
regedit and search for WHATEVER-I-DONT-GIVE-A-D.

Create a new Key of the type Reg_expand_sz called WHATEVER, and put in
"%computername%" as value. Export the parent key (where
WHATEVER-I-DONT-GIVE-A-D was the default value) to a reg file.

Open up the regfile in notepad, and change it so that the value of WHATEVER
of type reg_expand_sz is assigned to the default key "@".

Delete the old key in regedit, then doubleclick the regfile. The type of the
key should now be reg_expand_sz (before it was reg_sz and would have shown
%computername% instead of resolving it.

If you are nice, and want some more information, you can use this regfile:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
@=hex(2):25,00,75,00,73,00,65,00,72,00,6e,00,61,00,6d,00,65,00,25,00,20,00,\
 
40,00,20,00,25,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,6e,00,61,\
  00,6d,00,65,00,25,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
@=hex(2):25,00,75,00,73,00,65,00,72,00,6e,00,61,00,6d,00,65,00,25,00,20,00,\
 
40,00,20,00,25,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,6e,00,61,\
  00,6d,00,65,00,25,00,00,00

Gruesse - Sincerely,
 
Ulf B. Simon-Weidner
 
  MVP-Book "Windows XP - Die Expertentipps":  http://tinyurl.com/44zcz 
  Weblog: http://msmvps.org/UlfBSimonWeidner
  WebSite: http://www.windowsserverfaq.org  
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Salandra, Justin A.
> Sent: Friday, February 11, 2005 7:41 PM
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: [ActiveDir] Display Computer Name on Desktop
> 
> I have a question, is there a way to display the computer 
> name on the desktop either through a login script or via GPO?
> 
> Justin A. Salandra
> MCSE Windows 2000 & 2003
> Network and Technology Services Manager
> Catholic Healthcare System
> 212.752.7300 - office
> 917.455.0110 - cell
> [EMAIL PROTECTED]
> 
> 
> List info   : http://www.activedir.org/List.aspx
> List FAQ    : http://www.activedir.org/ListFAQ.aspx
> List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to