none
How to set OSDcomputername to SCCM name RRS feed

  • Question

  • Hello, 

    I work as a Desktop Engineer for a university. I'm still a little new to this position so forgive me if this is something easy.

    I'm updating how to we are managing our computer labs. Currently, we import the computers in SCCM via cva with the needed name and MAC address. The name provides the logic to populate into the correct lab collection to get it's assigned Task sequence. Then a file share that has to be mapped during the task sequence that gets the name of the computer from a text file by verifying it's mac address. Going forward, I don't what to continue to use this method of having to map a share and maintain a second area for naming a computer is redundant. 

    The Question is this. Is there a way to tell the Task Sequence Variable OSDcomputername to name to use the SCCM name?

    Any help would be much appreciated.  I wasn't able to find much info for on this online. 

    Thanks,

    Devin


    Thursday, March 29, 2018 1:34 PM

Answers

  • So to clarify, you want the name of the system where the TS is delivering the OS to be the same as the name of the imported resource in ConfigMgr that corresponds (based on MAC address) to the targeted system?

    If so, this is default behavior and there's nothing extra for you to do here. If that's not what is happening right now, it's because something is separately setting the OSDComputerName variable to a different value.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Thursday, March 29, 2018 2:43 PM

All replies

  • there are many guides online available for you to choose the computer name .It can be serial number or prompt for hostname or any format that you would like to have . Refer these links

    https://www.windows-noob.com/forums/topic/5542-how-can-i-easily-prompt-for-a-computer-name-in-configuration-manager-2012/

    http://www.scconfigmgr.com/2013/06/03/automate-computer-name-during-osd-in-configmgr-2012-with-powershell/


    Eswar Koneti | Configmgr Blog: http://www.eskonr.com | Linkedin: eskonr | Twitter: @eskonr

    Thursday, March 29, 2018 1:51 PM
  • So to clarify, you want the name of the system where the TS is delivering the OS to be the same as the name of the imported resource in ConfigMgr that corresponds (based on MAC address) to the targeted system?

    If so, this is default behavior and there's nothing extra for you to do here. If that's not what is happening right now, it's because something is separately setting the OSDComputerName variable to a different value.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Thursday, March 29, 2018 2:43 PM
  • Thanks for the info. I was thinking it must be easy. Just didn't know it was the default. Thanks again.
    Friday, March 30, 2018 12:31 PM
  • it is easy to understand and implement, do deploy the task sequence to a collection, add unknown (x32) and unknown (x64) to that collection, in the collection properties add variable OSDComputername and don't give it a value and set the option to be editable field.

    you can add any variable in thet pane, once you select a task sequence to run it shows those fiels to fill in in the next screen

    OSD Collection variables

    OSD Task sequence variables

    Saturday, March 31, 2018 6:42 PM
  • That will make the TS engine prompt for the value of the variable which is not what the OP is after. They simply want it set to whatever name the resource that they imported is named. As I noted, that is default and automatic behavior already without having to do anything.

    Jason | https://home.configmgrftw.com | @jasonsandys

    Saturday, March 31, 2018 8:19 PM
  • To get computer name and other input variables use SCCM Task Sequence OS Deployment Orchestrator. It's free and enterprise grade. https://sccmtspsi.com/

    A Just to mention a few benefits:

    - Detailed email reporting of task sequence deployments.
    - Unlock Bitlocker (Active Directory, remote Active Directory, MBAM, file & key)
    - OnDemand task sequence selection.
    - Operating system selection
    - Office application selection.
    - SCCM application selection.
    - SCCM collection membership in real-time.
    - Active directory group membership.
    - Add Primary system users.
    - Save and restore user data (USMT).
    - 18 extension attribute assignments.
    - Automatic staging.
    - Decommissioning.

    Documentation : https://sccmtspsi.com/documentation/



    • Edited by Topaz.Paul Sunday, August 11, 2019 8:17 PM temp edit
    Friday, August 9, 2019 3:31 AM