All Forums >> [Scripting] >> WSH & Client Side VBScript >> Rename PC according to MAC address Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 1
Score: 0
Joined: 6/25/2005
From: South Africa
Status: offline
Hi, I am new to vbscript and I am trying to rename computers according to their mac address, I already have a list that looks something like this: 00B0D0D47CE0=pcname1 00B2D0D47CE0=pcname2 etc. all I need to be able to so is search the textfile and rename the win2k pc accordingly any ideas would be appreciated.
i think the easiest one would be this code from that site, assuming you arent on a domain. You could modify the code to read through your file and use the values to change the hostname on each machine. look at the file system object to read through the file, and the split function to load the data once you are able to read through the file.