Have you ever been in a situation where you struggled to create a user account in Windows Control Panel? Do you want to create or delete a user account right from the Command Prompt? If so, read on this guide.
Creating a new user account is pretty easy in Windows 8. Just open the Metro Control Panel, go to Users and click Add a user button. In Windows 8, you can’t actually create a new user account from old Control Panel. When you click Add a new user option in the old Control Panel, it opens the Metro Control Panel. So, Metro Control Panel is the fastest and easiest way to create a new user account.
What if the Metro Control Panel is missing from your Windows 8 Start screen or you can’t open the Control Panel for some other reasons?
A user account can be added from the Command Prompt as well. All you need to do is execute a simple command and your new user account is ready!
Here is how to create a user account in Windows from Command Prompt:
Step 1: Open Command Prompt with admin privileges. To do this, type CMD in Start menu search box and simultaneously press Ctrl + Shift + Enter keys.
If you are a Windows 8 user, type CMD in Start screen and hit Ctrl + Shift + Enter keys to open elevated prompt. Click Yes for the confirmation prompt. You can also follow our how to run a program as administrator in Windows 8 guide to know more.
Step 2: In the Command Prompt, type the following command and hit enter key:
net user username password /add
(in the above command, replace “username” with your a custom name and password with a strong password to secure your account)
Please note that you run the above command in elevated prompt. Running the command without admin rights will show “Access denied” error.
How to delete a user account from Command Prompt:
Step 1: Open elevated Command Prompt.
Step 2: Type the following Command and hit enter key:
net user username /delete
(replace “username” with the user account name which you would like to delete)
Please note that the above command also works in XP, Vista, and Windows 7.