SCCM – Add Local User to Administrators Group During OSD

sccm logo

About A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over eight years! IT expert in multiple areas for over 21 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by A.J. Armstrong

19 Comments on “SCCM – Add Local User to Administrators Group During OSD”

  1. Good morning, First off I’d like to thank you this wonderful guide. I’ve integrated this into my SCCM a couple of different ways but am having issues. I first created two .bat files and add them into SCCM as packages. I did individual ones and one that has both commands added and causes the user script to run first so the account is created and then the admin script runs to give the created user admin rights. I have successfully run these.bat files on machines and they work flawlessly. I’ve tried both these scenarios in SCCM during OSD. When I use the individual .bat packages, the user profile gets created but it doesn’t get admin rights. When I use the combo ( both command lines run back to back ) it doesn’t even create the user. Lastly, I tried just adding the cmd lines into the task sequence. Again, the user gets created but its not getting the admin rights. Any thoughts would be appreciated. Thanks and have a great day.

  2. Hello,

    I’m trying to create a user and adding it to administrator group during OSD but it fails with an 0x00000002 error code.

    can u help me plz ?

  3. Hi,

    How can I add an AD security Group into local administrator group as part of OSD task sequence using SCCM 2012 R2?

    Please help..

    thanks

  4. How can i set the local user just created as a autologon user? (as part of OSD task sequence using SCCM 2012 R2)

  5. Hello,

    I’m trying to create a user and adding it to administrator group during OSD but it fails with an 0x00000002 error code.

    can u help me plz ?

  6. Hi,

    How can I add an AD security Group into local administrator group as part of OSD task sequence using SCCM 2012 R2?

    Please help..

    thanks

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.