Windows - How to change adminstrator password using the command prompt

Ask a question

Windows - How to change administrator password using the command prompt


Issue

How to change administrator password using the command prompt?

Solution

Open the command prompt:
  • Press Windows + R
  • Type regedit and press Enter

The syntax is a follows:
  • net user username password
    • Where username is the name used for your admin account
    • and password is your new password.

Thanks to akio morita for this tip!
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team