Jump to content

customsettings.ini based upon Lenovo Model and serial number


Recommended Posts

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
 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...