How to create users & groups through command line in windows 11



We can manage local user and groups from control panel and by clicking on my computer through manage option but we can also add, remove, disable, enable, reset user password   through command prompt. But we must be an administrator of the system.

How to check current users.
Command: Run-cmd-run command net user
How to add new user
Command: Net user +user name +password /add
How to remove existing user
Command: Net user +username /delete
How to enable and disable user
Command: Net user username /active: yes (For enable)
Command: Net user username /active: No (For disable)
 How to change password
Command: Net user username+*press enter
It will ask password which you want to change

For example I have made test user in this screenshot.

Here some Screenshot for more refrences.











 

Comments

Popular posts from this blog

Core 5 Security Epics in AWS Cloud

Why do you need to monitor your network?

How to change Domain account logging password