Page 1 of 1 1
Topic Options
#27132 - 2002-08-15 03:57 PM Renaming "My Computer"
Brian Chivers Offline
Fresh Scripter

Registered: 2002-08-15
Posts: 10
Loc: UK
Does anyone know how to rename "My Computer" ?

What I'd like to do is rename it to the computer name as show by @WKSTA and possible even the IP address (e/g PC75000 192.168.0.1)as the user logins in.

I've managed so far to alter "My Documents" to point to the users `Homedrive` and alter IE to point to our intranet but this bit I just can't seem to get my mind round [Confused]

Any idea will be gratefully received.

Thanks
Brian

Top
#27133 - 2002-08-15 05:41 PM Re: Renaming "My Computer"
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Show User and Computer Name on Desktop (Windows NT/2000/XP) Popular
Category: Home > Windows > Desktop
This tweak will rename "My Computer" to "Username on Computername" making it simple to determine which computer you are logged on to and which username you are logged on as.

Using REGEDT32.EXE (this is necessary for REG_EXPAND_SZ) open your registry and find the key in the settings section below. Then continue following the steps for your Windows version.

For Windows NT
Delete the existing value called "No Name" and add a new REG_EXPAND_SZ value with an empty value name and set the value to "%USERNAME% on %COMPUTERNAME%".

For Windows 2000
Rename the value named "LocalizedString" to "LocalizedString.old". Create a new REG_EXPAND_SZ value named "LocalizedString", and copy the contents of the original value to the new value except change the words "My Computer" to equal "%USERNAME% on %COMPUTERNAME%". For example, the new "LocalizedString" value may equal "@C:\WINNT\system32\shell32.dll,-9216@1033,%USERNAME% on %COMPUTERNAME%".

For Windows XP or Internet Explorer 6.0+
Rename the value named "LocalizedString" to "LocalizedString.old". Create a new REG_EXPAND_SZ value named "LocalizedString", and set the value to "%USERNAME% on %COMPUTERNAME%".

Exit the registry editor, click on your desktop and press F5 (for refresh). The "My Computer" icon should now be rename to "Username on Computername".

Note: Users of Internet Explorer 6.0 or greater should use the method for Windows XP.

Registry Settings
System Key: [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Data Type: REG_EXPAND_SZ (Expanded String Value)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#27134 - 2002-08-15 07:24 PM Re: Renaming "My Computer"
Beelzel Offline
Fresh Scripter

Registered: 2002-03-08
Posts: 46
Loc: DC Metro area
a good site for really getting into trouble with the REG is REGEdit it has helped me blowup a few boxes in my day ... oops, I mean make changes.
_________________________
If not for the last minute ... nothing would get done ...

Top
#27135 - 2002-08-15 07:55 PM Re: Renaming "My Computer"
badboii Offline
Fresh Scripter

Registered: 2002-03-07
Posts: 32
Loc: Seattle, WA
Just a quick question...can you access REGEDT32 from Kix - wondering if this can be done within the login script so all computers in a domain are changed.

Thanks for any help!
_________________________
========================== Brian Zamora Computer Technician brian_zamora@hotmail.com ==========================

Top
#27136 - 2002-08-15 08:01 PM Re: Renaming "My Computer"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22333
Loc: OK
yes you can...
and regedit too.
just with shell or run command.

anyway, writing just reg info and with no such create amount of stuff...
you might want to look at kix's:
writevalue()
addkey()

functions...
_________________________
!

download KiXnet

Top
#27137 - 2002-08-15 08:11 PM Re: Renaming "My Computer"
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
here is a basic script for it... but I'm not certain how useful it would be. In this case to grab and post the IP would probably require Admin Privs to write to the reg key.

code:
	if (left($ie,1)="6" and $os="Win2k") or $os="WinXP"
$myIP=enumipinfo($nic,0)
$=writevalue("HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","LocalizedString","%%USERNAME%% on %%COMPUTERNAME%% @@ $MyIP",REG_EXPAND_SZ)
endif

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 159 anonymous users online.
Newest Members
emnipetro, Hirze, thequeen, ameliaryan, shalomsalami
17641 Registered Users

Generated in 0.029 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org