How to Add and Delete Users Accounts With Command Prompt in Windows

If you’re an IT professional or a tech-savvy individual, you might find it quicker and more convenient to manage user accounts in Windows through Command Prompt. This article will guide you through the process of adding and deleting user accounts using Command Prompt.

Adding a User Account

To add a new user account, follow these steps:

  1. Open Command Prompt with administrative privileges by searching for ‘cmd’ in the Windows search bar, then right-click and select ‘Run as administrator’.
  2. Use the ‘net user’ command followed by the username and password to create a new user account. For example, to create a user named ‘John’, enter: net user John password /add
  3. You can also add the new user to a specific user group by using the command: net localgroup groupName username /add
  4. Once you’ve added the user account, you can log in with the new credentials.

Deleting a User Account

If you need to delete a user account, follow these steps:

  1. Open Command Prompt as an administrator.
  2. Use the command net user username /delete to remove the user account. For example, to delete the user ‘John’, enter: net user John /delete
  3. Confirm the deletion when prompted.

By using Command Prompt to manage user accounts in Windows, you can efficiently add and delete accounts as needed. Remember to exercise caution when making changes to user accounts, especially when dealing with administrative privileges.