So in my UserExit script, the set name function just works down a list of choices for the models of machines I have in my environment if a Dell desktop name it DTDE + service tag (pulled using WMIC). I have a specific naming convention I like to use for my machines that includes a 2 letter code for Desktop(DT) or Laptop(LT), a 2 letter code for manufactuer (I use LE for LEnovo) and then finally the service tag (for Dells) or the Serial Number for Lenovos. Then in my CustomSettings, I set OSDComputerName by calling this function: OSDComputerName=#SetComputerName()# For example, in my UserExit script, I have a function called SetComputerName. What I actually use is a UserExit script that defines several functions to set some variables. Currently they pull a 13 digit number using OSDComputerName = %serialnumber% I can see the wmic baseboard get serialnumber pulls the correct number if I run it manually, but I cannot figure out how to implement that into the TS to name them. Do you have a working naming script that is able to automatically name the Lenovo machines? I'm working on an SCCM OSD that pulls the incorrect serial number for the Lenovo but works fine on the Dell machines.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |