Manish Bangia Posted February 26 Share Posted February 26 Here is the customsettings.ini specifically created for Lenovo model. It will pick OSDCOMPUTERNAME as first 4 characters of Model along with serial number of the device. ;Generate Hostname for Lenovo as: first 4 digits of Model and serialnumber ;Generate Hostname based upon Laptop/Desktop with SerialNumber ;Generate Hostname based upon VM with MacAddress [Settings] Priority=Default,ByModel,ByLaptop,ByVM,ByDesktop Properties=CustomSerialNumber,CustomMacAddress,CustomModel [Default] CustomSerialNumber=#Right(Replace("%SERIALNUMBER%","-",""),13)# CustomMacAddress=#Right(Replace("%MacAddress001%",":",""),13)# CustomModel=#Left("%Model%",4)# [ByModel] Subsection=%Make% [Lenovo] OSDCOMPUTERNAME=%CustomModel%-%SerialNumber% [20K5] [ByLaptop] Subsection=LP-%IsLaptop% [LP-True] OSDCOMPUTERNAME=LP-%SERIALNUMBER% [ByDesktop] Subsection=DP-%IsDesktop% [DP-True] OSDCOMPUTERNAME=DP-%SERIALNUMBER% [ByVM] Subsection=VM-%IsVM% [VM-True] OSDCOMPUTERNAME=VM%CustomMacAddress% OSDomainOUName=LDAP://OU=Virtual,OU=Workstations,DC=MANBAN,DC=COM Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.