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

Jean-François Pillou - Founder of CCM
Better known as Jeff, Jean-François Pillou is the founder of CommentCaMarche.net. He is also CEO of CCM Benchmark and digital director at the Figaro Group.

Learn more about the CCM team