Net (command)/User

From Wikiversity
Jump to navigation Jump to search
Command prompt
Command prompt

Net is a Windows command used to view and modify network settings. These activities will show you how to use the net user command.

Note: To complete this activity, you must have an administrative user account or know the username and password of an administrator account you can enter when prompted.

Preparation[edit | edit source]

To prepare for this activity:

  1. Start Windows.
  2. Log in if necessary.

View Users[edit | edit source]

To view user accounts on your computer:

  1. Open an elevated/administrator command prompt.
  2. Type net user and press Enter.
  3. Observe the list of user accounts on your computer.

Add a User Account[edit | edit source]

To add a user account to your computer:

  1. Open cmd with Administrator and Type net user username password /add, where username is the name of the new user and password is the password for the new user account. For example, if the username is Bill and the password is Passw0rd, you would type net user Bill Passw0rd /add. Then press Enter.
  2. Type net user and press Enter to confirm the user account has been added.

Please note that passwords with a dollar-sign ($) are not allowed.

Delete a User Account[edit | edit source]

To delete a user account from your computer:

  1. Type net user and press Enter to view user accounts on your computer.
  2. Type net user username /delete, where username is the name of the user you wish to delete. For example, if the username is Bill, you would type net user Bill /delete. Then press Enter.
    • If you see "syntax of this command is:", check spelling and spacing
  3. Type net user and press Enter to confirm the user account has been deleted.
  4. Close the command prompt to complete this activity.

Readings[edit | edit source]

References[edit | edit source]