Since I hadn't done this for a while I checked on my 2003 server and the reg hack below does not work on Windows 2003 server. Looks like MS moved the effective CLISD for "My Computer" to underneath HKCU.
The previously posted VBS code seems the best way to do this instead of all the mucking about with REG_SZ and REG_EXPAND_SZ keys. There is also the issue where the 2003 regedit doesn't want to delete the actual "(default)" key so you can't change it to a REG_EXPAND_SZ type without exporting the key, hacking the export, and re-importing. Of course you could just hit F2 and rename it manually...harder to script but just as effective. :-) -Stuart Fuller -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fuller, Stuart Sent: Friday, February 11, 2005 12:09 PM To: [email protected] Subject: RE: [ActiveDir] [gptalk] Display Computer Name on Desktop This is actually a common thing for the Citrix/TS world and is a registry hack to the "My Computer" icon. >From http://thethin.net TS FAQ: Question: How do I change the name of My Computer to display the server name or username? Response: Using Regedt32 edit Registry for My Computer. The key is : HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} Delete the following value in this key and recreate as follows : Value Name : (No Name) Data Type : REG_EXPAND_SZ Data : %USERNAME% %COMPUTERNAME% (To do this delete the current value and using `Edit` from menu bar select `String`. Do not enter a value name. -Stuart Fuller P.S. All registry warnings apply - use at your own risk. P.P.S. You can also use the BG info tool from Sysinternals - this is way cool - http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml -----Original Message----- From: Salandra, Justin A. [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 11:41 AM To: [email protected] Cc: [EMAIL PROTECTED] Subject: [gptalk] 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/
