Link to home
Start Free TrialLog in
Avatar of Reyesrj
ReyesrjFlag for Guam

asked on

Script to change hostname

Hi All,

I would like to know if it’s possible and how to create a script to change a computer hostname.  Our techs will create a master image and copy the image to about 20 workstations.  If I had all the MAC addresses of all twenty workstations (I’ll get from DHCP) I want the script to assign a specific hostname to that workstation if it has that MAC address.  So the script will be imaged to all 20 workstations.  When imaging is completed all that will be needed is to run the script.

Thanks in advance
Avatar of arnold
arnold
Flag of United States of America image

What OS are you dealing with?
Usually, if you have the mac and names, you can do the post install script using depending on your answer to the first question.
Avatar of Reyesrj

ASKER

Windows 7 OS.  I also plan or having the script run on the first reboot.  Again if this is possible.

Thanks for the reply
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Reyesrj

ASKER

thanks