Jump to content


  • 0
ChandanOmkar

Computer name would be Deptname + serial number

Question

Hi,

 

I have a data base with only table which has two columns - 1. Department name 2. Serial number.

 

Department name consists of the department name and seria number column consists of the serial number of the machine of particular department.

 

I want to add a script in task sequence of SCCM which will get the serial number of the machine during OS deployment and after getting the serial number it will check the database for the serial number and if the serial number founds in the DB then it will pick the Department name of the computer and assign the computer name in following format :

 

DepartmentName+Serial number, for example - Accounts0987654

 

How to achieve this. Any help would be appreciated.

 

--------------------------------------------------------------------------------

Thanks Chandan

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Google (or your preferred search engine) is your friend when looking for code samples. Here are just two that crop up when searching for "VBScript OSD computername":

http://myitforum.com/cs2/blogs/elgwhoppo/archive/2010/08/17/naming-computers-during-osd.aspx

http://www.windows-noob.com/forums/index.php?/topic/2140-osd-using-vbs-for-machine-name-for-uknown-computers/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.