OSD Computer name prompt and serial number

jaybird283 536 Reputation points

I am curious if anyone knows of a way have an OSD task sequence prompt a technician to enter a computer name, but also pre-populate the prompt with the serial number as a default. i would like to avoid using MDT if possible. i think either a wmi query or the _SMSTSSerialNumber variable might be a good way to pull the serial number. but i have no idea where to start on prompting for input and populating the prompt with a serial number. i also assume that the output of the prompt would need to set the OSDComputerName Variable. please correct me if i am wrong.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
803 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gary Blok 1,731 Reputation points

    I'd recommend leveraging something like UI++ https://uiplusplus.configmgrftw.com/
    Demo: https://docs.recastsoftware.com/ConfigMgr-Docs/Community-Tools/Community-Tools-UI%2B%2B.html

    Once you grab the serial number, you could use that to pre-populate the computer name dialog box, which is similar to the scenario that is covered in that demo link.

    2 people found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Fiona Yan-MSFT 2,311 Reputation points


    Thank you for posting in Microsoft Q&A forum.

    We could use a PS script combine with serviceui.exe to set the "OSDComputerName" variable to pull the pre-populate serial number.
    We need to add one line to the script provided in this article:" $TBComputerName.Text = (Get-WmiObject -Class Win32_BIOS | Select-Object SerialNumber).SerialNumber".
    The output image may like below:


    Have a nice day!

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. jaybird283 536 Reputation points

    Wow. thank you both for the great responses! @Fiona Yan-MSFT i am going to give that script a try. can i just create a package and drop that into the task sequence right after the "apply operating system" step? or could i just add it as a powershell script step?

    0 comments No comments

  3. jaybird283 536 Reputation points

    i just tried it by adding it as a powershell script in the task sequence and it shows its running in the progress bar, but doesn't prompt or do anything. almost looks like it's hung. does my boot media need some extra components installed for that to work?

  4. Jason Sandys 31,071 Reputation points Microsoft Employee

    For some additional background and information here: https://home.memftw.com/osd-frontends-series/

    0 comments No comments