ORIGINALLY POSTED BY TALEN FOR THETAZZONE/TAZFORUM HERE
Do not use, republish, in whole or in part, without the consent of the Author. TheTAZZone policy is that Authors retain the rights to the work they submit and/or post…we do not sell, publish, transmit, or have the right to give permission for such…TheTAZZone merely retains the right to use, retain, and publish submitted work within it’s Network
Please refer to the original post as not all the script may be visible here.
Adding this little chunk of code to your login script will change the “My Computer” name from “My Computer” to whatever the NetBIOS name of the (Windows) workstation is. Handy if you use a DNS-based remote access solution in the enterprise. Most users, without fail, can’t tell you the name of their workstation.
- Code: Select all
Const MY_COMPUTER = &H11&
Set objNetwork = CreateObject("Wscript.Network")
objComputerName = objNetwork.ComputerName
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
objFolderItem.Name = objComputerName
I find it helpful.