HomeCommand PromptHow to Change Password with Command Prompt on Windows 11 or 10?

How to Change Password with Command Prompt on Windows 11 or 10?

Fortifying Security: Changing Passwords via Command Prompt in Windows 11 and 10

Security is paramount in today’s digital age, and safeguarding your computer is a top priority. On Windows operating systems, particularly versions 10 and 11, setting a password on a user’s local account is a fundamental security measure. However, merely setting a password once isn’t enough. For enhanced security, it’s essential to periodically change your password to ensure your computer remains protected against unauthorized access. In this article, you’ll discover the steps to easily change your password using the Command Prompt on both Windows 11 and 10. Please note: If you’re using a Microsoft account to log in to your PC, this guide won’t apply. Instead, you’d need to reset your email password online or through your Microsoft account’s Windows 11/10 Lock screen.

How to Change Password with Command Prompt on Windows 11 or 10?

To change your account password using Command Prompt on Windows 11 or 10, use the following steps:-

Step 1. Firstly, open a command prompt with elevated rights.

To do so, press the Windows + R keys on the keyboard to launch the Run dialog box. In the box, type cmd and then hit Ctrl + Shift + Enter from the keyboard.

Step 2. On the prompt, type the following command to list down all the available accounts on your computer and press Enter  on the keyboard:-

net user

Step 3. Now, note down the username you want to change the password. Then, type the following command and hit the Enter  key on the keyboard:-

net user USERNAME *

Note: Please replace USERNAME with the account name you want to update in the above command. For instance, we want to update the “Test” account password. So my command will be “net user Test *.”

Step 4. After that, type a new password beside “Type a password for the user:” and then hit Enter on the keyboard.

Step 5. Again, type the same password next to “Retype the password to confirm:” and hit the Enter key on the keyboard.

Once you complete the above steps, sign out of the account. To sign back into your account, you’ll need to enter the new password that you have set.

Also Read: How to Enable or Disable Task Manager on Windows 11 or 10?


Changing your account password regularly on Windows 10 and 11 is a prudent measure to bolster security. Leveraging the Command Prompt provides an efficient method to achieve this. By following the outlined steps, you can quickly update your password and reinforce your computer’s defense against unauthorized users.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exclusive Offer: Lifetime Free License Giveaway for WonderFox Document Manager!

In today's digitally driven world, managing documents efficiently has become more important than ever. From business professionals to students, everyone is on the lookout...

Get AirRadar 7 Free: The Ultimate Wireless Network Detection and Optimization Tool Giveaway

In today's digital age, a reliable WiFi connection is indispensable. Whether you're traveling or simply trying to get the best signal in your own...

Free Giveaway: Get SurFlex Screen Recorder for Mac – Capture and Record Without Limits!

In the digital age, screen recording has become an essential tool for various purposes, from creating tutorials and gaming content to business presentations and...

Get StreamFab YouTube Downloader Pro for FREE: Exclusive Giveaway Offer!

In the age of digital content, video-downloading tools have become an essential asset for many users. Among the myriad of options available, StreamFab YouTube...

Giveaway: Wise Registry Cleaner Pro 1 Year Free License Key

Navigating the world of online software can be a challenge, especially when on the hunt for reliable and free registry cleaners. A myriad of...