Here you will find several VBS scripts that will allow you to change the Text for the My Computer icon on your desktop.
The scripts will allow you to change the text from “My Computer” to the Computer Name, User Name or the Computer Name and User Name. There is also a script that will allow you to hard code the text as well as one that will prompt you for the text to change the caption to via an input dialog box.
Computer Name
Const MY_COMPUTER = &H11&
Set objNetwork = CreateObject("Wscript.Network")
strText = UCase(objNetwork.ComputerName)
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
objFolderItem.Name = strText
User Name
strText = UCase(objNetwork.UserName)
Computer Name And User Name
strText = UCase(objNetwork.ComputerName) & vbCrLf & UCase(objNetwork.UserName)
Hard Coded Text
strText = "Don Hite"
Prompts For Text
strText = InputBox ("Enter Text For My Computer Icon")
No Comments