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 userHow to add new user
Command: Net user +user name +password /add
How to remove existing userCommand: 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)
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
Post a Comment