Dec 1, 2003 #1 Schirmag Technical User Jan 24, 2002 9 DE Hallo, we´ve an Active Directory 2000 and i want to autorename the "My Computer" icon on the desktop to the computers DNS name. Did anyone have a logon script or a Group Policy ? Thank you for your help! Kind Regards, Matthias
Hallo, we´ve an Active Directory 2000 and i want to autorename the "My Computer" icon on the desktop to the computers DNS name. Did anyone have a logon script or a Group Policy ? Thank you for your help! Kind Regards, Matthias
Dec 1, 2003 #2 tfg13 MIS Nov 10, 2003 1,568 US This is a start: Renames the My Computer icon on the local computer, giving it the same name as the computer itself. 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 You can fiddle with it to get it to do what you want, but no promises.... Upvote 0 Downvote
This is a start: Renames the My Computer icon on the local computer, giving it the same name as the computer itself. 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 You can fiddle with it to get it to do what you want, but no promises....