Skip to content
Follow
Windows

How to Change Windows 11 Password via Command Prompt

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

Changing your Windows 11 password via Command Prompt takes under 60 seconds and lets you bypass the Settings app entirely. Command Prompt is a built-in Windows tool that lets you run system tasks by typing short text commands.

Advertisement

You use the built-in net user command to set a brand new password instantly. This method works fast when you get locked out of your PC and need to get back in right away.

⚡ 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.

Advertisement

Changing Your Password via Windows Settings

Changing your Windows 11 password through the main Settings app takes just a few clicks if you know where to look. You can use this method for both standard local profiles and connected Microsoft accounts. Open Settings, go to the Accounts section, and follow the prompts under Sign-in options to set your new password.

  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

The correct reset steps depend on whether you use a Microsoft account or a local account. Microsoft accounts tie directly to cloud profiles, requiring updates through the official online portal. Local accounts exist exclusively on the physical machine.

Changing Password via Command Prompt (Admin Required)

You can change your Windows 11 password using Command Prompt if you have administrator access to the computer. This method lets you bypass the standard login screens and reset user credentials directly through the command line. You must run the terminal with full administrator rights for the command to work properly.

Search for Command Prompt in the Start menu , right-click the result, and select Run as administrator.

Advertisement

2. View your existing user accounts by typing `net user` and pressing Enter.

net user
Listing users in Command Prompt on Windows 11
windows list users command prompt

3. Update the credentials using the net user USERNAME * command.

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 command-line way to change a Windows 11 password when you need administrative control over local user accounts. This tool works well for IT tasks or when the standard desktop settings are blocked. You need to open PowerShell as an administrator and use a secure string variable to apply the new password safely.

1. Open PowerShell as an administrator.

Advertisement

2. View your local users with this command:

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:

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

4. Use these commands to finalize the change:

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

Summary

Standard desktop users rely on the Settings app, while system administrators prefer the speed of Command Prompt and PowerShell.

Advertisement

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

Forgotten credentials prevent direct in-session updates. Triggering the account recovery workflow from the sign-in screen restores access.

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

Local hardware tokens secure PINs against remote extraction, offering stronger protection than traditional passwords.

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.

Advertisement

📚 Related Tutorials

How to Create a Password Reset Disk for Windows 11
Windows How to Create a Password Reset Disk for Windows 11
How to Change or Reset Your Windows 11 Password
Windows How to Change or Reset Your Windows 11 Password
How to Change your Microsoft Account Password
Windows How to Change your Microsoft Account Password
How to Reset Your Microsoft Account Password
Windows How to Reset 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 *