Jump to content

Renaming Computer Name based on BIOS info


Recommended Posts

All the laptops we have here at work are IBM laptops that contain serial information found in the BIOS.

*thanks to a lot of help & documentation found on this site* :)

I have successfully created an unattended CD that is shared amongst our Network Admins.

We have agreed on a standard convention for naming computers (which contains the model of the laptop, the serial and whether it is a workstation or server)

So a computer name could look something like this:

WS-R40-AKY7883

(Workstation-Model-Serial)

This information can be found in the BIOS (the model and serial number).

In my unattended CD, it joins the computer to the domain, but it is always the same computer name specified in the winnt.sif file (i think thats the file).

Is there a way i can take the BIOS information, and use that as a computer name while joining the domain?

or

at least, during the application install part of my unattended CD, take the serial & model from the BIOS and rename the computer name with the same BIOS info (but using VB script or something)?

Link to comment
Share on other sites


You can try using VBscript with a Select statement from Win32_BIOS. Download Scriptomatic from Microsoft and lookup Win32_BIOS, it will tell you the attributes that can be selected. Good luck.

Link to comment
Share on other sites

You'd be better served to join the domain after installation, probably best during RunOnceEx in a script. You could use the vbscript to write a registry value, then use that registry value to change the computer name and join the domain. Note that this would be a two-boot process, because you'd need to reboot after changing the machine name before joining the domain.

Link to comment
Share on other sites

I have created a file that uses vb script.

so far i am able to pull the information from the BIOS using vb script (inside an hta file).

I have to use HTA b/c i use radio buttons for model selection.

can i change the computer and authenticate the change on the domain using vbscript?

Link to comment
Share on other sites

You can try using VBscript with a Select statement from Win32_BIOS. Download Scriptomatic from Microsoft and lookup Win32_BIOS, it will tell you the attributes that can be selected. Good luck.

Link to comment
Share on other sites

thanks to everyone who has helped!!!

i have succesfully created a script that changes the computer name of a computer that is on a domain.

so at install time (during network setup), it joins the domian.

and during runonce application install, it changes the computer name based on the serial.

thanks again for all the help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...