Monday
Feb062012

Windows user account management at the Command Line

One thing I do pretty frequently is add and delete user accounts and going through the GUI can be time consuming especially if your dealing with a slow or unresponsive computer. So, what I opt for is using Windows Command line.

Open a Command Prompt as an Administrator. 

First, let's add a user. When you see the blinking cursor, type the follow command:

net user exampleuser examplepassword /add

Your Command Prompt should now look like this.

*NOTE: If you just type net user the prompt will display a list of all the accounts on the computer. This is a fast easy way to get a snap shot of all the users without having to go through the control panel.

If you want to add that user to a particular group you would type:

net localgroup examplegroup exampleuser /add

Here we added the user to the Administrators group.

Now to delete a user:

net user exampleuser /del

You can also add a User Group similar to how you added a user by typing:

net localgroup examplegroup /add

And delete a user group:

net localgroup examplegroup /del

These commands only apply to local user accounts, however, if you are connected to a domain you can add and delete users by adding /domain at the end.

For example:

net user Admin2 pa$$w0rd /add /domain

net user Admin2 pa$$w0rd /del /domain

Remember if your stuck on any command you can type /? or help after the command, press enter, and windows will show you how to user it.

 

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Internet Explorer keeps resetting default zoom level | Main | Printer driver errors and conflicts »