How to: Add A User Using Command Line

I am writing this guide in relation to my previous post on fixing the user profile service failed the logon, some of the users have reported that there are no restore points available to restore to, that may be the case if your system never created a restore point.

So what we will need to do in this case is, boot into safe mode, just like we did in the previous post, and then login to the problem account. (In Safe Mode, you are able to login).

You can also use the instructions for adding user account via command prompt for other tasks if and when needed.

After you are logged in, follow the steps below

– Hold Windows Key and Press R

– Type cmd and click OK

Now, in the command prompt, we will create a new user account (admin). To do this, in the black command prompt, execute the following two commands:

net user /add [username] [password]

net localgroup administrators [username] /add


In the above command, replace username with the new username, and password with the new password, in the second command, replace username with the username you added.

Then, restart your computer and login with this new user account. After logging in, what you will need to do is via file explorer, (Windows key + E), browse to the following location:

C:\Users and locate your previous username, open it and you will see your files and data from the faulty account.

Copy it and move it to the new account.

Hope this helps. Please comment below to let me know if this helped.

Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

How to: Add A User Using Command Line

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested