How to Change Windows Computer Password using CMD
Last Updated :
24 Apr, 2025
If you are a Windows user, one of the easiest ways to change your password is through the Command Prompt (CMD). This is especially helpful for users who prefer command-line tools or face issues accessing the standard settings menu.
In this article, we’ll guide you through the steps to change your Windows password using CMD, along with a few troubleshooting tips.
Prerequisites:
1. Administrative Rights
2. Familiar with the existing User Accounts
3. Backup the unsaved data
Using "net user" Command to Change the Password
Step 1: Open command prompt as Administrator
Go to the Search Menu, type CMD and select "Run as Administrator".
cmd as adminStep 2: Enter "net user" to fetch Password
net user <username> <newpassword>
Run as ADMINStep 3: Run the command to change the password
net user [username] [newpassword]
Replace "[username]" with the username of the account whose password you want to change, and "[newpassword]" with the new password you want to set.
Set passwordStep 4: Reopen to Confirm
Close the Command Prompt and log in with the new password.
Confirm to change the passwordHow to Privately Change a Password using CMD
Use this method to change the password for any particular user. Here's how you can do it:
Step 1: Go to Run & open Command Prompt
Go to the Search Menu, type CMD and select "Run as Administrator".
cmd as adminStep 2: List All Users to Choose
net user
Run as ADMINStep 3: Change the password for any particular user
net user USERNAME NEWPASS
If your desired user name has more tan one word then follow this pattern:
For Example: Username - ALPHA GTR
net user "ALPHA GTR" NEWPASS
Now, what if you're looking to remove a password using Command prompt? Let's see how you can get it done.
Using PowerShell - Additional Method (1)
Step 1: Go to Start and type PowerShell
Step 2: Type the following command to Change the Password
$username = 'UserNameHere'; $password = Read-Host -AsSecureString; net user $username $password
Note: Replace UserNameHere with the desired user account.
Step 3: Close the PowerShell > Restart > Log in
While in "Safe Mode" - Additional Method (2)
Step 1: Restart your PC and hit F8 several times to enter Windows Boot Mode
Step 2: Safe Mode with Command Prompt > net user
net user <username> <newpassword>
Step 3: Exit and Restart as usual
Steps to Remove a Password Using CMD
If you wish to remove the password for any particular account, you can set the password to blank by removing the password in the command line. Let's check it out:
Step 1: Go to Run & open Command Prompt
Go to Search Menu > type CMD > select "Run as Administrator"
Step 2: Run this Command to Remove Password
net user USERALPHA ""
Hence, this will clear your previously saved password for the account - USERALPHA
Tips & Tricks
While using CMD to change your password is usually a reliable method, there are a few common issues users may face:
1. Admin Access: Make sure to have admin access.
Without administration access, you won't be able to perform any of the above-mentioned action.
2. Invalid Username: Do remember the names of user accounts
net user
command to list all the exact username.
3. Password Policy Restrictions: Domain restrictions or Specific Password Policies
Make sure the new password meets the system's password requirements.
Conclusion
Changing password in Windows helps in managing and maintaining privacy. By following the different methods and steps, you can easily reset your password or remove it from your Windows 10 or 11.
Also Read
Similar Reads
How to Find the Wi-Fi Password Using CMD in Windows Forgotten your Wi-Fi password? Don't worry you're not alone! Whether you're trying to connect a new phone, set up a smart TV, or help a friend get online, remembering complex Wi-Fi passwords can be a headache. Luckily, you don't need to reset your router or dig through old notebooks. Windows has a h
7 min read
How to Download and Install the Google Play Store The Google Play Store is the heartbeat of your Android experienceâhome to millions of apps, games, and updates that keep your device functional, fun, and secure. But what if your phone or tablet doesnât have it pre-installed?In this step-by-step guide, youâll learn how to safely download and install
6 min read
How to Change Directories in Command Prompt (CMD) The Command Prompt (CMD) in Windows is a powerful tool for executing commands, managing files, and navigating your system. One of the most common tasks youâll perform in CMD is changing directories, which allows you to move between folders to access and manage files. But have you know how to change
11 min read
How to Clear DNS Cache in Chrome using chrome://net-internals/#dns Command If you're experiencing website loading issues, seeing outdated pages, or encountering network errors in Google Chrome, clearing your DNS cache (also known as host cache) might be the solution. This method is useful if you are facing problems like slow browsing speeds, site access errors, or incorrec
5 min read
How to List all Files in a Directory using CMD in Windows Are your files buried deep in folders and hard to find? While File Explorer is good for browsing visually, the Windows Command Prompt (CMD) offers a faster and more powerful way to manage and list files. Whether you're troubleshooting, creating backup lists, or writing scripts, the dir command gives
5 min read
How to See deleted Messages on Whatsapp [5 Methods] Ever received a WhatsApp message only to see it disappear with a âThis message was deletedâ notification? Whether itâs curiosity or the need to retrieve important information, figuring out how to see deleted messages on WhatsApp can feel like solving a mystery. While WhatsApp doesnât make it easy, t
6 min read
How to Create Any File Using CMD: Learn 5 Methods Creating a file using Windows GUI is quite simple but did you know you can do the same using the Command Prompt (CMD)? This guide will walk you through multiple methods to create files directly from CMD, giving you more control and efficiency in managing your system.How to Create a File in CMDMethod
4 min read
Fixing High CPU & Disk Usage by Antimalware Service Executable (MsMpEng.exe): 9 Proven Solutions" If your Windows PC feels unusually slow and unresponsive, the culprit might be a system process called Antimalware Service Executable(MsMpEng.exe). This blog post explains why this process can spike CPU and disk usage and more importantly, how to fix it while keeping your device secure. and you don'
14 min read
How to Set File Permissions in Linux Ever worried about who can access, modify, or execute your critical files on a Linux system? File permissions are the backbone of Linux security, ensuring that only authorized users and processes interact with your data.In this guide, youâll learn how to master Linux file permissions using commands
10 min read
How to Download and Install Node.js and NPM NodeJS and NPM (Node Package Manager) are essential tools for modern web development. NodeJS is the runtime environment for JavaScript that allows you to run JavaScript outside the browser, while NPM is the package manager that helps manage libraries and code packages in your projects.To run a Node.
3 min read