How to Add and reset User password in Windows 11 using CMD

🟒1. How to Reset Password in Windows 11 WITHOUT Bootable Pendrive (CMD Method)

If you forgot your Windows 11 password but don’t have any bootable pendrive or installation media, you can still reset it using Windows Recovery Environment + CMD.
This trick uses the Sticky Keys CMD method, and it works on any Windows 11 PC.


πŸ”§ Step-by-Step Method

Step 1: Enter Windows Recovery Mode (No USB Needed)

Force your PC into recovery:

  1. Turn ON your PC

  2. As Windows loads β†’ Hold the Power button to force shutdown

  3. Repeat 3 times

You will now see:
Preparing Automatic Repair β†’ Advanced Options


Step 2: Open Command Prompt

Navigate:

Troubleshoot β†’ Advanced Options β†’ Command Prompt


Step 3: Replace Sticky Keys with CMD

In the CMD window, type:

copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

Press Y to confirm overwrite.


Step 4: Restart the PC

Boot normally to the Login Screen.


Step 5: Press SHIFT Key 5 Times

This will open CMD with full system access.


Step 6: Reset the Forgotten Password

Use:

net user username newpassword

Example:

net user Ashraf 112233

Your password is reset instantly. Login normally.


βœ” Optional: Restore Sticky Keys Later

After login:

copy c:\windows\system32\sethc_original.exe c:\windows\system32\sethc.exe

Β 

🟒 2. How to Add a New User in Windows 11 Using CMD

If you want to create a completely new user, use Command Prompt:

βœ” Create a new local user:

net user username password /add

Example:

net user Student1 12345 /add

This creates a new standard user account.


🟒 3. How to Give Admin Privileges to Any User in CMD

After adding the user, assign Administrator rights:

net localgroup Administrators username /add

Example:

net localgroup Administrators Student1 /add

Now the user has full system access.


Β 

🟒 4. How to Reset Any User Password in CMD (Inside Windows)

If you are already logged in with any admin account, this is the simplest method.

βœ” Open CMD as Administrator

Then type:

net user username newpassword

Example:

net user Nosu 887766

Password resets instantly.


🟒 5. Reset Windows 11 Password Using Another Admin Account

If your PC has multiple users:

  1. Log in using a different admin account

  2. Open CMD as admin

  3. Run:

net user mainusername newpassword

This resets the main account password immediately.


❗ Important Notes & Warnings

  • These methods work only on local accounts, not Microsoft online accounts.

  • For Microsoft account password reset:
    https://account.live.com/password/reset

  • Sticky Keys method is allowed only on devices you own.

  • Always restore Sticky Keys for accessibility users.


🟒 Frequently Asked Questions (FAQ)

Q1. Can I reset Windows 11 password without USB or installation media?

Yes. Using the Windows Recovery Environment + Sticky Keys CMD method, you can reset your password without any external tools.


Q2. Will this method delete my files?

No. This method only resets the password, it does not touch your data.


Q3. Does it work on Windows 10 also?

Yes. The same commands and method work on Windows 10, 8.1, and 7.


Q4. Can I reset Microsoft Account password using CMD?

No. Microsoft accounts require online reset at the Microsoft password recovery website.


Q5. Is CMD safe for password reset?

Yes, if you use it responsibly and on your own device.


🟒 Conclusion

Resetting your Windows 11 password without a bootable pendrive is 100% possible using CMD. Whether you want to:

βœ” Reset forgotten password
βœ” Add a new user
βœ” Give admin privileges
βœ” Access CMD from login screen

Scroll to Top