Add a new Windows user or administrator from the command line

Microsoft does offer you an option to add a new user when you go to the control panel of Windows. However, in some cases you might need to add a new user with the command line.

To create a regular user, you should open command prompt with elevated privileges (‘Run as administrator’) and enter:

net user /add Username Password

Now this should create a new user in Windows with the username and password you specified. You have now created the user account.

However, in case you need an administrator account, we need to add this newly created user to the Local Administrators Group.

net localgroup administrators Username /add

The user is now an administrator.

 

Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.

 

One thought on “Add a new Windows user or administrator from the command line

  1. Pingback: Hide all WordPress update notifications in dashboard | Thomas' Miniblog

Leave a Reply

Your email address will not be published. Required fields are marked *