Question
June 10, 2011 at 01:37 AM
takuya_101

Windows Script XP and 7; Edit Host name using Mac Address

by takuya_101 . Updated 15 years, 2 months ago

OK, so I am wanting to open an internet cafe/gaming lounge. Now to start with I’m only wanting about 10/15 computers to start with.

First I would be creating an image and doing it that way, so yeah.

But what I would like is to create a script that will first mount a network drive and call on a text file, using that text file, take that PC’s mac address and rename the computers host name. Like:

Computer Mac – Host Name
12:54:AC:12:54:45 – Row01S6

Then delete the script, remove the share drive and reboot the computer. (of cause the share drive will have a username and password)

Now as I was writing this out, I have to wonder if a text file would work or should I just create two scripts, sadly I don’t know how to use “if” commands, can this be kept to batch files?
So my second idea, create a script that accesses a shared drive and runs a script there, this script holding both Mac Addresses and Host Names. The script looks at the Mac address and changes the Host name with whatever host name is.

Now if I sadly must use Windows 7, cuz I’m going for windows XP. In Windows 7 is there a way to autorun an Windows Activation by the command prompt for a volume license?

This discussion is locked

All Comments