Choose Local Admin to set during OSD RRS feed

  • Question

  • Hi all,

    I've been asked to configure in our eviroment Windows 10 1809 Enterprise OSD with SCCM 1810 and now all working good, but our manager asked me to implement during the OSD task sequence where the user is prompted for computer name, to ask also which domain user should be set as local admin of the computer.

    Anybody can help me with this?



    Wednesday, March 13, 2019 9:34 AM

All replies

  • If using SCCM you can integrate this with the MDT technology and this will give you some additional features

    Here you can use a step which allows you to use the UDI Wizard in your SCCM task sequence, and here you will be able to be prompted with the computer name, domain user to make local admin aswell as to join the domain and which OU to place the machine.

    You can customize the UDI Wizard using the UDI Wizard tool that comes along with it and you can configure it however you need to

    Here is a great guide and example on how to implement this

    Website: Technical Blog: Personal Blog: Twitter: Dwalshampro

    Wednesday, March 13, 2019 10:49 AM
  • Thanks,

    i've seen this videos, those helped me in configuring SCCM. but what it's not clear to me, is how to validate if the domain user inserted from who is deployng the pc effectively exist in AD or not.



    Wednesday, March 13, 2019 10:21 PM
  • For this we may need to add in an independent step which would check if the account exists.
    So something a "Set Task Sequence variable" step which has a variable for which account you would check to see if it exists,

    then have a "Run PowerShell Script" or "Run Command Line" step which runs a Get-ADUser command to check if this account exists etc

    I think the UDI wizard could do it too such as a validation button but will check

    Website: Technical Blog: Personal Blog: Twitter: Dwalshampro

    Monday, March 18, 2019 9:38 AM
  • It is quite easy to set a script in the MDT Task Sequence to prompt for a computer name to be entered. You could use a basic vbscript or an HTA file which would allow for a UI with validation. An HTA file is just a combination of vbscript, html and css.

    For the local admin account. It would appear you are asking to add a domain account to the computer not add a local account. It would be best to control admin accounts on systems by using a GPO. So no matter which domain the computer is apart of it will get the policy and set the admin accounts.

    Monday, March 18, 2019 12:26 PM
  • I've had a look and seems I have to use the orchestrator to to this with OSD.

    i'll work on it once I get time.

    Thanks you all.

    Tuesday, March 19, 2019 3:16 PM