How to Add an Admin User on Windows using Command Line

Here are the simple commands to add an admin user on Windows.

  1. Open up an elevated Command Prompt.
  2. Type this command in the Command Prompt window to create an user.
    net user admin_user_name admin_user_password /add
  3. Type this command in the Command Prompt windows to add the user to the local administrators group.
    net localgroup administrators admin_user_name /add

 


This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.


Be the first to comment

Leave a Reply