none
Add a user to local admins by command line RRS feed

  • Question

  • Hi. I'm trying to add a user to admins by command line during install of OS, but it's always time a fail. The reason why I didn't do it via CS.ini is that first this user removes from local admins and then adds. It's due language settings which this user somehow didn't got right language settings. The command is:

    cmd.exe /c net localgroup Administrators sys_eng /add

    And at the end of install I getting this:

    Any ideas why it so? Thanks in advance.


    • Edited by Net Ranger Wednesday, May 4, 2016 6:41 AM
    Wednesday, May 4, 2016 6:40 AM

Answers

  • Command line step

    UPD: made this command as .bat file and add as application to MDT seems like workable solution. Till now question is solved. When I will spot something differ, I will post it here.

    • Edited by Net Ranger Wednesday, May 4, 2016 11:03 AM
    • Marked as answer by Net Ranger Wednesday, May 4, 2016 11:03 AM
    Wednesday, May 4, 2016 7:53 AM

All replies

  • Is this a command line step or an application step?

    Many questions such as where do I find logs and what logs are interesting are found in: MDT TechNet Forum - FAQ & Getting Started Guide Please take the time to read it.

    Wednesday, May 4, 2016 7:27 AM
    Moderator
  • Command line step

    UPD: made this command as .bat file and add as application to MDT seems like workable solution. Till now question is solved. When I will spot something differ, I will post it here.

    • Edited by Net Ranger Wednesday, May 4, 2016 11:03 AM
    • Marked as answer by Net Ranger Wednesday, May 4, 2016 11:03 AM
    Wednesday, May 4, 2016 7:53 AM