How to Reset an Administrator Password Using CMD on Windows 11

Let’s get straight to it: how to reset an administrator password using CMD on Windows 11 is the right search—and the right solution—because Windows won’t show the old password in plain text for security reasons. The safest, supported way is to reset a local admin password with Command Prompt from an elevated session or from Advanced Startup (WinRE) if locked out. This guide is practical, policy‑aware, and packed with easy fixes and pro tips.

 Reset an Administrator Password
Reset an Administrator Password
Point What it means Why it matters
CMD can’t reveal passwords Windows stores password hashes, not readable text Don’t waste time on “show password” tricks
Reset works for local accounts Use net user to set a new password Fastest legit recovery without third‑party tools
Locked out? Use WinRE CMD Command Prompt from Advanced Startup Works even when no admin session is available
BitLocker may prompt You might need the recovery key Have it ready to unlock the drive
Microsoft accounts differ Reset online; net user is for local accounts Avoid dead ends and failed attempts

Intro vibe and quick honesty

  • No scare tactics here—just clear steps that work.
  • Keep things legit: only reset passwords on devices owned or approved to service.
  • If it’s a work device (domain/Entra ID), use the official helpdesk or SSPR.

Terms used naturally in this article include reset administrator password CMD Windows 11, Windows 11 recovery command prompt, net user change password, enable built‑in administrator Windows 11, Advanced Startup Windows 11, Safe Mode with Command Prompt, BitLocker recovery key.

What this guide covers

  • Resetting a local admin password with net user (in‑session and locked‑out cases)
  • Opening Command Prompt in Advanced Startup (WinRE)
  • Handling BitLocker prompts and drive letter weirdness
  • Fixing “Access is denied,” username typos, and policy errors
  • Local vs Microsoft account differences
  • Optional: enabling the built‑in Administrator temporarily

Why “show admin password in CMD” doesn’t work
Windows doesn’t store sign‑in passwords in readable text—it stores hashes. CMD can’t “print” the old password because it doesn’t exist in that form. The correct approach is to reset the local admin password.

How to reset from an elevated CMD (already logged in)
This is the fastest method if any admin account is available.

  • Open an elevated Command Prompt:
    • Press Windows key, type cmd
    • Right‑click Command Prompt > Run as administrator
  • List users:
    • net user
  • Reset the password:
    • net user Username NewStrongPassword
  • Or reset interactively (doesn’t show the password):
    • net user Username *
  • Look for “The command completed successfully,” sign out/in, and test.

Expert tips

  • Use a long passphrase with a mix of characters.
  • If the account is disabled:
    • net user Username /active:yes
    • Reset the password, then sign in.

How to reset when locked out (WinRE Command Prompt)
If there’s no way to log in, use Advanced Startup (WinRE).

Open Advanced Startup (WinRE)

  • Shift + Restart from the Start menu or sign‑in screen
  • Or go to Settings > System > Recovery > Advanced startup > Restart now
  • Or run (if permitted): shutdown /r /o /f /t 00

Open Command Prompt in WinRE

  • Troubleshoot > Advanced options > Command Prompt
  • Pick an account if prompted; authenticate if required

BitLocker prompt?

  • If the OS drive is encrypted, have the BitLocker recovery key handy.

Find the Windows drive letter

  • In WinRE, Windows might not be on C:
  • Try:
    • C: then dir
    • If no Windows folder shows, try D:, E:, F: with dir

Reset the password

  • net user
  • net user Username NewStrongPassword
  • Or: net user Username *
  • exit, Continue to Windows, and sign in with the new password

Also read:  Telegram

Troubleshooting table

Symptom Likely cause Quick fix
Access is denied Not elevated / wrong context Use admin CMD or WinRE Command Prompt
The user name could not be found Typo or hidden/disabled account Run net user to list exact names; enable if needed
Password complexity error Local Security Policy rules Use a longer passphrase with mixed characters
Still can’t log in It’s a Microsoft account or wrong account Do Microsoft online reset; confirm local vs MSA
Drive not visible in WinRE Letter mapping changed Try D:, E:, F: and run dir
BitLocker recovery prompt Encrypted drive Enter the recovery key to proceed

Local admin vs Microsoft account

  • Local accounts: net user resets work.
  • Microsoft accounts: net user won’t change an MSA password—use the online reset, then sign in. Afterward, consider creating a backup local admin for emergencies.

Optional: enable built‑in Administrator (if allowed)
Use only temporarily and only if policy allows.

  • Enable:
    • net user Administrator /active:yes
  • Set a temporary strong password:
    • net user Administrator NewTempPassword!
  • Sign in, fix the main account, then disable:
    • net user Administrator /active:no

Safe Mode with Command Prompt path
If WinRE is fussy, try this:

  • From WinRE: Troubleshoot > Advanced options > Startup Settings > Restart
  • Press 6 (Enable Safe Mode with Command Prompt)
  • Run the same net user commands to reset the local admin password

Also read:  How to Get Rid of a Virus on Mac or PC

Common commands cheat sheet

  • List all users:
    • net user
  • Reset password (direct):
    • net user Username NewStrongPassword
  • Reset password (interactive):
    • net user Username *
  • Enable built‑in Administrator:
    • net user Administrator /active:yes
  • Disable built‑in Administrator:
    • net user Administrator /active:no
  • Quick reboot to Advanced Startup:
    • shutdown /r /o /f /t 00

Security and policy best practices

  • Use unique, strong passphrases; avoid reuse.
  • Prefer Windows Hello for daily sign‑ins; keep a known‑good password as backup.
  • Store the BitLocker recovery key somewhere safe (cloud account, printed copy in secure storage).
  • Disable the built‑in Administrator when done.
  • On managed devices, document changes and follow policy; use helpdesk or SSPR when required.

Also read: Vertical Lines on MacBook Screen

Quick scenario playbook

  • “I can log in with another admin”
    • Admin CMD > net user Username NewStrongPassword > sign out/in
  • “Totally locked out, BitLocker off”
    • WinRE > Command Prompt > net user reset > exit to Windows
  • “Totally locked out, BitLocker on”
    • WinRE > enter recovery key > Command Prompt > net user reset
  • “This is a Microsoft account”
    • Online reset > sign in > optionally create a backup local admin
  • “Company laptop (domain/Entra)”
    • Use official support reset flows (don’t bypass policy).

Resetting a local admin password with CMD is straightforward once the environment is right. The usual gotchas are BitLocker and account type. Keep a backup local admin, store the recovery key safely, and don’t fight domain/Entra policies—use the official path. If stuck, double‑check the username, verify drive letters in WinRE, and try again.

You may also like:

How to Show Administrator Password Using CMD

In the realm of Windows 10 or Windows 11, the administrator password holds the key to unlocking a realm of possibilities, allowing users to access elevated privileges and take full control of their systems. One of the most potent tools at your disposal for revealing this coveted password is the Command Prompt. In this comprehensive…
Chrome-error://chromewebdata/

Fix Chrome-error://chromewebdata/ on PC

If you’re a Chrome user and have encountered the frustrating Chrome-error://chromewebdata/ error while visiting certain URLs, don’t worry – you’re not alone. This error can manifest for various reasons, including corrupted cache data, outdated browser versions, problematic extensions, or corrupted browser settings. Additionally, you might see the error message NET::ERR_CERT_COMMON_NAME_INVALID displayed. Fortunately, you’ve arrived at…
software to control fan speed

How to Control Fan Speed on Windows 10

In the world of computing, every laptop and PC comes equipped with internal fans. Whether you’re using a high-end gaming rig or a regular laptop, these fans play a critical role in maintaining your system’s temperature within safe limits. They automatically adjust their speed based on various factors, ensuring your hardware remains cool and operational.…

How To Fix 0x80070002 Error On Windows: A Comprehensive Troubleshooting Guide

If you’re a Windows user, you might have encountered the perplexing “0x80070002” error at some point. This error code can emerge in various scenarios, from Windows updates to file operations, leaving you scratching your head. But worry not! In this comprehensive guide, we’re not just going to help you fix this error, but we’ll also…

How to Fix 0xc00007b/0xc000007b Error on Windows: A Comprehensive Guide

If you’re an avid gamer or enthusiastic software user, you’ve probably encountered the infamous “0xc00007b/0xc000007b” error on your Windows system. This vexing error often rears its head when you excitedly launch a game or a software application, only to be met with disappointment. But fret not! In this comprehensive guide, we’re not just going to…
physical memory dump

Fix Physical Memory Dump Error on Windows

If you get Windows blue screen you already know what Physical Memory Dump is. This error witch appears only on windows OS often shows some real trouble you have with your device. This physical memory dump error can show either there is some corrupted files in software or there is some trouble /incompatible with your…
gc invoker utility

Adobe GC Invoker Utility | Disable it at Startup?

Is there an Adobe GC Invoker Utility running at startup in the task manager? Do you understand what on earth it does on Windows 10, 7, 8? More often than not, many other Adobe procedures will run at startup also, such as Adobe Creative Cloud, Adobe Updater Startup Utility, and AdobeGCClient.exe. Yes, this report will…

What is the purpose of * In wildcard selector?

The * wildcard is known as the containing wildcard since it selects elements containing the set value. With the ^ wildcard, you get to select elements whose attribute value starts with the set value. The $ wildcard lets you select elements whose attribute values end with the specified value. What is the use of *…

Why we use SQL in Excel?

Using SQL statements in Excel enables you to connect to an external data source, parse field or table contents and import data – all without having to input the data manually. Once you import external data with SQL statements, you can then sort it, analyze it or perform any calculations that you might need. Why…