How to Unlock Computer Without Password on Windows 10 via Command Prompt

Hi, I need help with my Windows 10 computer. I haven't used my PC for a long time, and I tried to turn it on today only to find out there's a password required to be input! Unfortunately, I don't remember what the password is, and I don't know how to reset or bypass it. Can someone help me with this issue? Appreciate your help!

Best Answered by

Oliver· Answered on Apr 18, 2024

You need to access Safe Mode with Command Prompt first to unlock your computer using cmd.

To unlock a computer via cmd, you should boot into Safe Mode first so that you can apply Command Prompt and reset the forgotten password. However, it might be a little complex for users who are unfamiliar with command lines. So, make sure you follow the guide below step by step to avoid unexpected problems.

Step 1. Hold the "Shift" key and click "Restart" on the login screen.

Step 2. Go to "Troubleshoot" > "Advanced Options" > "Startup Settings."

Step 3. Press "6/F6" to enter Safe Mode with Command Prompt.

Step 4. The Command Prompt window will show up. Input net user and hit "Enter." Then, take note of the target account name.

Step 5. Type in net user username 12345 and hit "Enter." (Replace "username" and "12345" with your own account name and password you want)

If this method is too hard for you to follow, you can also look for help from a third-party tool like EaseUS Partition Master Professional.

Free Download 

Windows 11/10/8/7100% Secure

It has a Password Reset feature that allows you to bypass the Windows password with a bootable USB easily. You can check the article below for more details and information.

Further reading: How to Unlock Computer Without Password | 2023 Top Ways

People Also Ask

Is There Any Way to Remove Login Password From Windows 10 When Locked Out

If you're tired of entering a password every time you open the computer, you can read this guide to learn how to remove login password from Windows 10 when locked out.


Apr 18, 2024

I Want to Reset Windows 10 Password Using Command Prompt Without Disk

Do you want to reset your Windows 10 password using Command Prompt without a disk? Then, you are coming to the right place. This post will teach you how to introduce an easier alternative tool.


Apr 18, 2024

Can I Reset My Windows 10 Password Without Logging in?

If you are bothered by the question: can I reset my Windows 10 password without logging in? Follow this post to learn the available solution and step-by-step guide.


Apr 18, 2024

I Need Help: How to View the User Password in Windows 10

Are you struggling to recall a forgotten Windows 10 user password and want to know how to view the user password in Windows 10? This post will give you the 2023 newest and most comprehensive answer.


Apr 18, 2024

What is a Windows Password

What is a Windows password? Is it safe to set one on the computer? Can I find the forgotten password and access the Windows? Read this post, and you will find all the answers to your questions.


Apr 18, 2024

I Forgot Windows 10 Password and Security Questions, What Should I Do?

If you forgot Windows 10 password and security questions, do not panic. There are a few practical methods that can help you reset the password and access the Windows desktop. Continue reading, and you will learn how.


Apr 18, 2024