How to Change Windows 11 Password via Command Prompt
Changing your Windows 11 password through the Command Prompt lets you update your login details in under a minute without opening the main Settings app . The Command Prompt is a built-in text tool that lets you run system tasks by typing short text commands.
You can 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.
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
The built-in Settings app offers a graphical interface for updating credentials. Both Microsoft accounts and local profiles support this standard route. Open Settings, navigate to Accounts, then Sign-in options, select Password, and click Change to complete the workflow.
- Open the Start menu and click the Settings gear icon.
- Select Accounts from the left sidebar.
- Click on Sign-in options.
- Choose Password and click the Change button.
- Follow the on-screen prompts to verify your identity and set a new password.

Microsoft Account vs. Local Account
Account classification dictates the correct reset path. 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)
Terminal-based credential updates require elevated administrator rights. Launching an elevated console provides the necessary permissions for system modifications.
Access the terminal with administrative privileges by searching for Command Prompt in the Start menu , right-clicking the result, and selecting Run as administrator.
2. View your existing user accounts by typing `net user` and pressing Enter.
net user
3. Update the credentials using the net user USERNAME * command.
net user USERNAME *
Changing Password via PowerShell (Admin Required)
PowerShell offers an alternative administrative interface for modifying account credentials. Launching an elevated console allows queries via Get-LocalUser. Next, generate a secure string variable to hold the new credentials safely before applying them to the system.
1. Open PowerShell as an administrator.
2. View your local users with this command:
Get-LocalUser
3. Create a secure password variable and apply it to your account:
$Password = Read-Host "Enter the new password" -AsSecureString4. Use these commands to finalize the change:
$UserAccount = Get-LocalUser -Name "USERNAME"
$UserAccount | Set-LocalUser -Password $PasswordSummary
Standard desktop users rely on the Settings app, while system administrators prefer the speed of Command Prompt and PowerShell.
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?
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.
No comments yet — be the first to share your thoughts!