Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is it possible to remove a user's password using the net command?

I tried "net user <name> *" and just hitting return twice, but this does not work as expected. Is there any other way to do this? (I'd gladly take non-net commands, as long as they are built-in in XP SP3)

Best regards, MB

Edit: Seems, I did not make my intention clear. I don't just want to change the password, but remove it completely (so that the user may log in without having to supply a password).

I'm familiar with the "net"-reference and have searched online for several hours, but could not find a hint on how to do this.

share|improve this question
Is this for local accounts or for domain accounts? – MDMarra Mar 22 '10 at 21:12
local accounts (btw.: my statement was correct in the beginning, but <name> was swallowed because I used angle brackets instead of &lg and &gt) – Markus Bruckner Mar 22 '10 at 21:21
net user <name> * --> <Enter> --> <Enter> – kev Sep 4 '11 at 5:52

The command to set a password to blank is simply this:

net user username ""

Execute it in a Command Prompt (cmd) that is Run as Administrator.

Note: There's a nice vbs script that tests which account has a blank password here.

share|improve this answer
Sorry, but this doesn't work neither (tried it before I posted the question and again just now in case I had had a typo before) – Markus Bruckner Mar 29 '10 at 10:36
@markus.bruckner: Well, I tried it before I posted, and it did work for me. Are you sure that system policies allow blank passwords? – harrymc Mar 29 '10 at 11:06
@harrymc: There is no such system policy. I will look into it again. – Markus Bruckner Apr 9 '10 at 11:03
I can confirm this does work, it removes the password rather than changing it. – Steven Penny Jun 20 '14 at 6:41
For me this doesn't do anything if executed in a PowerShell window but works when running in cmd.exe – Peter Hahndorf Jul 4 at 13:30
net user <username> passwordreq:[yes or no] 

Used to determine if the account needs a password. Not sure it works. Maybe this will do?

You also might find this interesting: Net.exe reference

share|improve this answer
Sadly, this doesn't work neither. This option just states that the user doesn't have to have a password. Btw.: The link you provided seems to target a server os, and not Windows XP. – Markus Bruckner Mar 22 '10 at 21:17

You nearly got it: you need to specify the user's username on your command:

net user <username> *

That should prompt them for a new password and confirm it. Or do you just need to remove the password and not set a new one?

share|improve this answer
Exactly, I need to set no password at all. – Markus Bruckner Mar 22 '10 at 21:18

the command is


if you leave the password blank it may remove the password, however I have a minimum password policy on this machine and I cant set a password with 0 characters

share|improve this answer
Tried this already. Since the password is optional, the processor cannot know if one supplies no or an empty password. – Markus Bruckner Mar 22 '10 at 21:12

You must log in to answer this question.

protected by nhinkle May 1 '11 at 0:22

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?