Set hostname by mac address(windows)

User discussion and information resource forum for Image products.

Set hostname by mac address(windows)

Postby robmorin » Tue Jun 26, 2018 9:46 am

Hello all... Can i somehow when restoring automatically(windows) set a hostname based on MAC address?, so i am doing 5 restores at once using same image, so hostname stays the same on all laptops afterwards. How can i make the hostnames unique? But do it automatically? Also the same for the product key?

Thanks
robmorin
 
Posts: 11
Joined: Tue Jun 20, 2017 4:59 am

Re: Set hostname by mac address(windows)

Postby TeraByte Support » Tue Jun 26, 2018 11:57 am

One way is to just sysprep the system prior to creating the image and let it
run mini setup.

But if you want to automate, you could use TBScript to change the host name.

Actually, you may be interested in looking in to the osdtool.tbs and/or
tbidtool.tbs script. The TBOSDT manual has information on those script
which have a "ComputerName" field you can use.



"robmorin" wrote in message news:15116@public.image...

Hello all... Can i somehow when restoring automatically(windows) set a
hostname based on MAC address?, so i am doing 5 restores at once using same
image, so hostname stays the same on all laptops afterwards. How can i make
the hostnames unique? But do it automatically? Also the same for the product
key?

Thanks

TeraByte Support
 
Posts: 2562
Joined: Thu May 05, 2011 3:37 pm


Return to Image for DOS/Linux/Windows

cron