Skip to content

Computer name would be Deptname + serial number

Featured Replies

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

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/

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.