Skip to content
Follow
Windows

How to Change Windows 11 Password via Command Prompt

Richard
Written by
Richard
Jan 2, 2022 Updated Apr 29, 2026 2 min read
How to Enable or Disable Microsoft Defender Cloud Protection
How to Enable or Disable Microsoft Defender Cloud Protection

You can change your Windows 11 password using the Command Prompt by following a specific set of commands.

The Command Prompt, often abbreviated as CMD, is a powerful command-line interpreter application used for executing commands in Windows. This method offers a quick alternative to the graphical Settings app for password management.

For instance, you can swiftly reset a forgotten password or enhance your security by using the `net user` command with the correct syntax within the Command Prompt window.

Updating your password is crucial if you suspect unauthorized access or simply want to strengthen your account’s security. Your new password immediately replaces the old one, securing your personal files and data.

⚡ Quick Answer

Open Command Prompt as administrator, then type “net user USERNAME *” and press Enter. Replace USERNAME with your actual account name. You will be prompted to enter and confirm your new password.

Changing Your Password via Windows Settings

You can easily change your Windows 11 password using the Settings app, which works for both Microsoft and local accounts.

  1. Open the Start menu and click the Settings gear icon.
  2. Select Accounts from the left sidebar.
  3. Click on Sign-in options.
  4. Choose Password and click the Change button.
  5. Follow the on-screen prompts to verify your identity and set a new password.
Searching and opening Windows Terminal in Windows 11
windows terminal search and open

Microsoft Account vs. Local Account

It’s important to know which account type you’re using. A Microsoft account connects to your email and syncs across your devices. A local account is unique to your specific computer. If you use a Microsoft account, you’ll need to change your password through the official Microsoft online portal.

Changing Password via Command Prompt (Admin Required)

Changing your Windows 11 password with the Command Prompt is a quick method, but you’ll need administrator rights to do it.

  1. Search for Command Prompt in the Start menu, right-click it, and select Run as administrator.
  2. Type the following command to see your user list:
💻Code
net user
Listing users in Command Prompt on Windows 11
windows list users command prompt

3. To change the password for a specific user, type this command and press Enter:

💻Code
net user USERNAME *
Successfully changed user password in Windows 11
successfully changed user password windows 11

Changing Password via PowerShell (Admin Required)

PowerShell provides another way to manage your local user accounts and change your Windows 11 password, though it also requires administrator access.

  1. Open PowerShell as an administrator.
  2. View your local users with this command:
PowerShell
Get-LocalUser
Listing users using PowerShell in Windows 11
windows 11 list users powershell

3. Create a secure password variable and apply it to your account:

PowerShell
$Password = Read-Host "Enter the new password" -AsSecureString

4. Use these commands to finalize the change:

PowerShell
$UserAccount = Get-LocalUser -Name "USERNAME"
$UserAccount | Set-LocalUser -Password $Password

Summary

You can change your Windows 11 password using the Settings app for simplicity, or Command Prompt and PowerShell for faster administrative control.

Can I change my 🪟 Windows 11 password without knowing the old one?

If you’ve forgotten your Windows 11 password, you can’t change it directly; instead, you must use the ‘I forgot my password’ option on the sign-in screen to reset it.

Is it safer to use a PIN or a password in 🪟 Windows 11?

Using a PIN for your Windows 11 login is generally safer than a password because it’s tied to your device and stored securely, making it harder to steal remotely.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Change or Reset Your Windows 11 Password
Windows How to Change or Reset Your Windows 11 Password
How to Create a Password Reset Disk in Windows 11
Windows How to Create a Password Reset Disk in Windows 11
How to Reset Your Microsoft Account Password
Windows How to Reset Your Microsoft Account Password
How to Change your Microsoft Account Password
Windows How to Change your Microsoft Account Password

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *