Zagos Posted March 13, 2015 Report post Posted March 13, 2015 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. Quote Share this post Link to post Share on other sites More sharing options...
Zagos Posted March 23, 2015 Report post Posted March 23, 2015 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, DefaultProperties=CustomProperty, OSDMigrateConfigFiles, OSDMigrateMode[Default]OSInstall=YDoCapture=NOComputerBackupLocation=NONEBDEInstallSuppress=YESOSDMigrateMode=AdvancedOSDMigrateAdditionalCaptureOptions=/ue:*\* /ui:CHEROKEE\*OSDMigrateConfigFiles=Miguser.xml,Migapp.xmlSLSHARE=\\ccsdcfs1\sccm$\LogsApplyGPOPack=NOBitsPerPel=32VRefresh=60XResolution=1YResolution=1[DefaultGateway]10.44.20.1=NOC10.114.20.1=NOC2[NOC]OSDComputername=44-%SerialNumber%[NOC2]OSDComputername=114-%SerialNumber% Quote Share this post Link to post Share on other sites More sharing options...