Jump to content


Zagos

AutoNaming based on second octet of IP and Serial Number

Recommended Posts

Hello;

 

We have recently moved to SCCM 2012 for our deployment. Previously, we used KACE product to deploy all our OS needs. In our previous system I created auto naming the computers based on second octet of it’s IP address obtained from DHCP and the serial number. So, if the computer being deployed at a site had an IP address of 10.44.25.26, I would take the 44 add a dash followed by the serial number. Like this: 44-SerialNumber.

 

I am new to SCCM, and I am trying to figure out location prefix.

 

I know that I can create OSDComputerName “Task Sequence Variable” with the Value of %SERIALNUMBER% which will use WMI to pull the serial number , however I am not sure how pull in the second octet of the ip address. I do see a value called %DefaultGateway%, but not sure how to pull in the second octect out of it.

 

I have seen some configuration done in the CustomeSettings.ini file where you have declare all your locations by gateway and assign a value to it... But, I am wondering if this can be done from GUI Task Sequance settings. Perhaps, some condtions with IF statments.

 

I would really appriciate a little hand holding on this one.

 

Share this post


Link to post
Share on other sites

OK, Well After reading and looking at what I want to do with naming; I believe this is going to be a better way of doing it throught CustomSetting.ini file. Now I am going to try and to see if I can move machines based on gateway to a particular AD OU.

 

[settings]
Priority=DefaultGateway, Default
Properties=CustomProperty, OSDMigrateConfigFiles, OSDMigrateMode

[Default]
OSInstall=Y
DoCapture=NO
ComputerBackupLocation=NONE
BDEInstallSuppress=YES
OSDMigrateMode=Advanced
OSDMigrateAdditionalCaptureOptions=/ue:*\* /ui:CHEROKEE\*
OSDMigrateConfigFiles=Miguser.xml,Migapp.xml
SLSHARE=\\ccsdcfs1\sccm$\Logs
ApplyGPOPack=NO
BitsPerPel=32
VRefresh=60
XResolution=1
YResolution=1

[DefaultGateway]
10.44.20.1=NOC
10.114.20.1=NOC2

[NOC]
OSDComputername=44-%SerialNumber%

[NOC2]
OSDComputername=114-%SerialNumber%

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
Reply to this topic...

×   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.