How to Change Administrator Password in Windows 7 Using CMD

In Computer Tips • By Raman Sharma • Last Updated: June 3, 2015 • 4 Comments

If your PC or Laptop is password protected, you have to enter the password before enter in computer. And once if you admitted in computer by providing the correct administrator password, then you don’t need to provide old password to change the admin password. It can be possible only by using command prompt.

It is really a funny trick and may be useful for many users of PCs and Laptops. One thing here which you need to remember that without run as Administrator, you can not implement this trick.

Actually, it really seems funny when you want to change the password of someone’s PC but you don’t know the current password of that PC. In this condition ask for their PC or Laptop to run for a while. Now type the following commands in command prompt(cmd).

  • Open command prompt by run it as administrator.

Command Prompt>>Run as Administrator

  • Type command¬†Net Users to see the user accounts of Windows.

Command prompt screen with net users command

  • Now if you want to change password of Administrator, type the command Net Users Administrator * and hit Enter. Now you will see new line to type a new password for administrator.

Command Prompt>>Type a new password

  • So,now type a new password to change the current password. Let’s see the last step of this funny trick of cmd.

Password changed successfully using cmd

MUST READ: How To Set Picture Password in Windows 7

Finally, you have done! Two another things that’s my duty to tell you that whenever you type the password in cmd then you can’t see the numbers or characters you have entered. You have to keep in mind the letters and retype again. And if you not log in as Administrator, you will an error message like system error 5 has occurred…..Access is denied. So keep in mind you have to log in as Administrator.

The following two tabs change content below.
Raman is a pro blogger from India. He was started AUI as a passion but it's now empowering thousands of daily readers. Read More!
  • Genius

    Good guidance! There is another easy way to change administrator password in Windows 7-Windows Password Key Enterprise. You can change the password with or without login. More info you can check out in this page:

    • Raman Sharma

      Thanks buddy. I will definitely try Windows Password Key Enterprise.

  • Sachin Mundlik

    C:Windowssystem32>Net Users admin *

    Type a password for the user:

    Retype the password to confirm:

    System error 5 has occurred.

    Access is denied.


    • Raman Sharma

      I’ve already mentioned about it in the last paragraph. So, make sure that you’ve opened Command Prompt as Administrator.

      For this, just right click on the Command Prompt program and choose Run as Administrator, as mentioned in the first step.

      I hope it will solve your issue. Thanks for commenting :)


Hello readers! I'm Raman Sharma, a pro blogger from Gwalior, India.

I started All Useful Info (AUI) in December 2012 as a passion but it's now empowering thousands of daily readers.

You can read more about AUI and Raman Sharma HERE.


  • Raman Sharma: Anuj, glad it worked for you. Looking to hear from you in fu…
  • Anuj Prajapati: That's really a great resource I found. It worked for me. No…
  • Raman Sharma: It's my pleasure to share Jackk. Keep visiting. :)…