Unlock For Us

Adding and Deleting users at Windows

 The net user command allows you to add, modify, or delete user accounts, and display detailed information about user accounts on a local computer or domain. Lets study some simple functions here.


1. Lets display all possible commands using net user

C:\Users\UnlockForUs>net user /?

The syntax of this command is:


NET USER

[username [password | *] [options]] [/DOMAIN]

         username {password | *} /ADD [options] [/DOMAIN]

         username [/DELETE] [/DOMAIN]

         username [/TIMES:{times | ALL}]

         username [/ACTIVE: {YES | NO}]


How To Add User:
1. Net user LawrenceAlbert ok
2. Net user Lawrence Albert /active: yes

How to delete User:
Net use Lawrence /delete

<UserName> Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.

<Password> Assigns or changes a password for the user's account. Type an asterisk (*) to produce a prompt for the password. The password isn't displayed when the user types it at the password prompt.


Source: Microsoft Learn

BE CAREFUL AND SLOWLY

0 Comments:

 

© Unlock For Us @2024| Blogger| License Agreement