RECOMMENDED: Click here to fix Windows errors and optimize system performance

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]

PRO TIP: If the issue is with your computer or a laptop/notebook you should try using the Reimage Plus Software 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 Reimage Plus by Clicking Here

net localgroup administrators [username] /add

useraddcmd

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.

PRO TIP: If the issue is with your computer or a laptop/notebook you should try using the Reimage Plus Software 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 Reimage Plus by Clicking Here

RECOMMENDED: Click here to fix Windows errors and optimize system performance

About Kevin Arrows

Hi! I'm Kevin. Thank you for reading the article above. I am a certified MCTS (Microsoft Certified Technology Specialist) with over 10 years of experience. I love to address tech issues, and write tech how-to's in a way that it can be followed by everyone.
  • aadmaan

    This did not work for me

    • Dan M

      Hi Kevin – this didn’t work for me either. When restart, new profile doesn’t show. I’m on Win7 Home Premium… any thoughts?

  • Denis Bloodnok

    Just had this happen on my daughter’s Vista machine.

    This solution worked perfectly.

  • vinod

    Thanks a lot Kevin

    Actually I dint had the restore point..I thought..now format is d only option..then I saw..steps without restore point..I did it n it worked.

    God bless you man. Thanks again

  • sam

    Kevin, the new user profile wont show up. please help

  • Patrick Michaels

    I created the new account but when I tried to login to it, the same error message came up: “the user profile service failed the sign-in. User profile cannot be loaded.”

  • Patrick Michaels

    I created the new account but when I tried to login to it, the same error message came up: “the user profile service failed the sign-in. User profile cannot be loaded.”

    • Looks like you have permission issues. It would be best to reinstall Windows.

  • Patrick Michaels

    Oh tnx very much. Would reinstalling windows delete my data?

    • Yes, it will. If you wish i can take a look at your issue remotely to see if i can resolve it.

  • Lawrence Cheng

    Thank you! This method worked for me very well. One thing to note is that apparently the System restore method didn’t work for me because the antivirus scanner previously installed on my computer was interfering with the restore. Since there was a file that the antivirus could not access, the restore was terminated and so the computer was reverted to the not-working state before the restore. This method was fine for me, although the first step shown here for cmd prompt is incorrect — you put the “/add” after the username and password (which should not have brackets)

    • The bracket is to clarify where the username will exactly go.

  • Kel Kal

    I still cant access my fault user folder after i login using the new username. Any option to copy them without using window explorer? Command prompt?

    • You may have created new user as standard without admin rights.

  • polly

    Thank you so much! It worked for me! 🙂

  • mike

    good news, that worked bad news, the new user storage is only 76MB so couldnt copy files. i guess i can copy to an enternal HD then delete the old user acct and mabye gain that memory?

    • You’ve guessed that right if there is no space and the old profile has taken all.

  • Patty Keeley Lynam

    I am so thankful, I found this site and you! You are the only person that has explained ALL the ways to fix this subject and I have to do the Command prompt also. You explain everything in simple non tech knowledge on my level lol. Thank you very much! I’m going to let everyone know YOU are the best!

  • Annie

    J’ai réglé mon problème, yéééééé !!!! Merci !!!!!

  • Srinivas Kondra

    Hi! I’m srinivas. Thanku for your answer, but i wanna ask one thing… If a system is connected to domain and cannot login in to domain users saying that user profile service failed to login and logging in workgroup account, then what should we have to do??

    no restore points are there….

    • Then, you can login as the domain administrator, and do a system restore. You can also copy profile to a new domain account.

  • Cris

    Thanks Kevin. After MUCH trepidation, I was able to navigate this process successfully. You are a life-saver. All the best to you.

  • This guide is applicable to end user versions only.

  • Yes, normal.

  • Which OS is it?

  • Kristina Kopf

    this worked, thanks. i had to restart over and over while tapping f8 before it finally caught, almost gave up but it finally connected to safe mode. windows 7. might have a problem copying old to new but at least i have a working computer!

  • it should be ran as an administrator.