Discussion Locked

change My computer to Computer name

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to change the My Computer Icon to display the computer name when users log on to their workstations. W2000 network.

5 replies

by dklippert

Here's a VB Script that will do it. This came from one of the forums.
At your own risk Good luck.

The following 6 lines (make sure they don't wrap) VBS script will make
the correct Registry change for you.

'Begin Script
Set WSHShell = WScript.CreateObject("WScript.Shell")
' The following is one line from p1= to }\". There is a space after p1= but not in the registry key
p1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\"
WshShell.RegWrite p1,"%computername%","REG EXPAND SZ"
Set WshShell = Nothing
'End Script

Copy the lines above to a Notepad file and save it with a .VBS
extension. Double click the VBS file you just saved to make the change.
Refresh the Desktop.

Note: This is a per user setting. If you need to change this setting
for multiple users, create a a shortcut to the VBS file in the All Users
Startup folder.

http://www.dougknox.com

by don christner

This can also be done with a registry hack.

Using regedit32.exe, locate the following key: HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} Data type is: REG_EXPAND_SZ

Rename LocalizedString to LocalizedString.old, then createa new REG_EXPAND_SZ value named LocalizedString. Copy the contents of the original value the the new value. Then change the MY COMPUTER to %USERNAME% ON %COMPUTERNAME%.

Don

This discussion is closed to new replies.