Can I use the net user command to add a user with an admin account?

Posted on 2004-10-24
Last Modified: 2010-08-05
Can I use the net user command from command line to add a user with administrative priviledges?  If so, what is the proper syntax?
Question by:srejja
    LVL 95

    Expert Comment

    by:Lee W, MVP
    It's a two command process.  First, add the user as you would normally, then use net group to add the user to the group.  For more information on each command type "net help <command>" and a help screen will display
    LVL 95

    Expert Comment

    by:Lee W, MVP
    LVL 3

    Accepted Solution

    On a standalone computer, add the user as you would normally (net user /add username) and then type   net localgroup administrators /add username

    For a domain, do a net user as you normally would, and then     net group "domain admins" /domain /add username

    LVL 11

    Expert Comment

    I would say use a combination of "net user" to set up the account, and the "net group" to add the net user to the administrator group:

    net user paul xxxxx /add /passwordreq:yes  /fullname:"Paul"
    net group administrator paul /add

    If it's a domain you'll have to edit accordingly.


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now