How to enable and disable Administrator using command prompt

Here we learn about how to enable or disable Administrator using command prompt and also how to delete user using command prompt. Just follow the steps.

Step 1:
Open command prompt by pressing shortcut keys "Window+R" a dialog box is open type "cmd" in this and press enter or click on "OK" button. A command prompt window is open.

Step 2:
Firstly, we will lists the users on the system by running "net user" command.

Step 3:
We can disable the built-in administrator user with this command. The command is

        "net user administrator /active:no"

Step 4:
To enable again the built-in administrator  user by using the command.
         "net user administrator /active:yes"

Step 5:
You can also delete the specific user by command prompt. Just type the command in command prompt.
          "net user username /del"
username is the name of user in your system which you want to delete.

You can also delete the user by using window GUI. Just press "Window+R" and type "control nusrmgr.cpl"
User account window will open and from that window you can delete the user.



Thanx for watching and give feedback.
the

Comments