Hello.
This should possible with an advanced customization of a single bare metal profile, after completing to fill its wizard tab (because editing the manual tab will disable the wizard tab), editing the manual tab so to configure the hostname based on the computer type. I report here an example. The manual tab follows the syntax of Microsoft CustomSettings.ini, if changes or insights are needed.
I don’t report the [Default] section because its content has been left as is, while the other sections should be added or modified as follows:
[Init]
ComputerSerialNumber=#Right(“%SerialNumber%”,7)#
[ByLaptop]
Subsection=Laptop-%IsLaptop%
[ByDesktop]
Subsection=Desktop-%IsDesktop%
[Laptop-True]
TypeCode=Laptop
[Desktop-True]
TypeCode=Desktop
[ComputerNameConf]
OSDComputerName=%TypeCode%-%ComputerSerialNumber%
[Settings]
Priority=Init, ByLaptop, ByDesktop, ComputerNameConf, Default
Properties=OSDPREFIX, BFClientVersion, BFClientFileName, ComputerSerialNumber, TypeCode
I also truncated the serial number to 7 character to not exceed the limit of 15 characters in the windows hostname.
Thanks.
Sergio – HCL BigFix – Lifecycle Team