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.
One thought on “Add a new Windows user or administrator from the command line”