Are there any commands for the Windows command line which allows you to change the password of the account? What about without using the current password?

(I saw a video about it once and it worked but over time I forgot it...)

migrated from stackoverflow.com Sep 10 '09 at 17:27

This question came from our site for professional and enthusiast programmers.

  • Why does this question have 1k views again? – Nathaniel Feb 10 '10 at 6:52
  • 3
    because of the misleading title. could have been "free porn" and it would have 10k views :) – akira Feb 10 '10 at 8:56
  • True. Question is, how many of those are coming from Google and how many are Super Users? Seems to happen with a lot of Mac questions, too (well, probably for different reasons). – Nathaniel Feb 12 '10 at 2:58

The Solution which Breakthrough gave is useless if you have a limited account.Here's what you to get admin privileges :-

Step One: First, open Command Prompt (either; Start->Run->Type cmd.exe->OK OR; Double-Click C:\Windows\System32\cmd.exe

Step Two: Create an account, if you do not wish to create a new account, ignore this step. Type the following into the black box that appears (command prompt)

net user /add

Example: net user max 123456 /add

This will create a password protected account. The username will be max The password will be 123456

Step Three: Find all of the user groups that are available on the network

net localgroup

This will bring up a list like this *Administrators *Debugger Users *Guests *HelpServicesGroup *Users The command completed successfully. (can be different according to different systems)

Step Four: Input the following into Command Prompt

net localgroup /add


net localgroup administrators max /add

This would add the username “max” join the group “administrators” and have all privileges related to that group.

This will work on local machines. and if you are lucky enough and the admin is not very good on what he is doing you can create your own admin account in an networked environment as well :) :) but if the cmd command prompt is restricted or a manual access rights are placed then no way to make this work.. You will probably get into trouble if you get caught doing this.. I have only provided this as an example of what you can do with command prompt and thus why it should always be disabled on limited accounts, I am not responsible for anything you do with this. also note that this only work at home or in an unmanaged network.

Have fun

  • 4
    you don't seem to be asking the question which was asked, and your solution suffers from the problem of being "on the other side of this locked door" – AdamV Nov 11 '09 at 17:14
  • 2
    If you're a limited user, you can't create new accounts, nor can you add groups (much less Administrators) to an existing account. Windows account security would be useless if non-privileged accounts could create privileged accounts at will. Using the command prompt doesn't bypass these restrictions. – Stephen Jennings May 26 '10 at 6:39
net user [USERNAME] *

Just replace [USERNAME] with yours, and hit enter. It will prompt you for the new password. If you have trimmed your Windows installation, however, the program may not be available (this usually only occurs if you use nLite/vLite/RT7Lite and removed something you shouldn't have).

  • 1
    add /domain if it's a domain account – wefwfwefwe Aug 20 '09 at 10:20
  • 6
    Just an FYI: I believe you need to be a local/domain admin for it to work without knowing the old password. At least that is how the Win32 API works (which I imagine is what net.exe will call). – Goyuix Sep 10 '09 at 17:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.