Hi
Welcome to Microsoft community.
If you have forgotten both your password and PIN for your Windows 10 logon and cannot access your desktop, it can indeed be challenging to reset the password using the Command Prompt or other methods that require logging in. However, there are still some options you can try to regain access to your computer:
- Microsoft Account Online Recovery: If you use a Microsoft account to sign in to Windows 10, you can try using another device to visit the Microsoft account recovery page (https://account.live.com/password/reset) and initiate the password reset process. Microsoft will send a security code to your registered email or phone number to help you reset your password.
- Windows Installation Media: If you have a Windows 10 installation media (USB), you can use it to boot your computer and access the Windows Recovery Environment (WinRE). From there, you may have access to certain recovery tools, including the Command Prompt, to reset your password. To use Windows 10 installation media to boot your computer and access the Windows Recovery Environment (WinRE), follow these steps:
- Create Windows 10 Installation Media: If you don't already have a bootable Windows 10 installation media, you can create one using the Media Creation Tool. You'll need a USB flash drive (at least 8 GB) or a blank DVD and a working Windows computer to create the installation media.
- Go to Microsoft's website and download the Media Creation Tool: https://www.microsoft.com/en-us/software-download/windows10
- Run the tool and select "Create installation media for another PC."
- Choose the language, edition, and architecture (32-bit, 64-bit, or both) for the Windows 10 version you want to install.
- Select the USB flash drive or ISO file option, depending on whether you want to create a bootable USB or burn the installation files to a DVD.
- Follow the on-screen instructions to create the installation media.
- Insert the Installation Media and Boot your Computer:
- Connect the bootable USB drive or insert the bootable DVD into your computer.
- Restart your computer.
- Access Boot Menu or Change Boot Order:
- During the computer's startup process, press the key that corresponds to the "Boot Menu" or "Boot Order" (usually one of the Function keys or Esc/Delete key) to access the boot menu. The specific key varies depending on your computer's manufacturer. Common keys are F12, F11, F10, F9, Esc, or Delete.
- Select the bootable USB drive or DVD from the boot menu. Your computer will now boot from the Windows 10 installation media.
- Windows Setup:
- You'll see the initial Windows Setup screen. Wait for the files to load.
- Language and Other Preferences:
- Select your language, time, and keyboard input, and click "Next."
- Repair your Computer (WinRE):
- On the next screen, click on the "Repair your computer" link located at the bottom left corner.
- Choose an Option:
- In the Windows Recovery Environment (WinRE) screen, you'll see a list of options. Select "Troubleshoot."
- Advanced Options:
- In the Troubleshoot menu, choose "Advanced options."
- Windows Recovery Environment (WinRE):
- Here, you'll find various advanced recovery options, such as System Restore, Startup Repair, Command Prompt, etc., depending on your needs.
- Select the Desired Recovery Option:
- Choose the recovery option that suits your situation. You can try "Command Prompt" to execute specific commands.
- Create Windows 10 Installation Media: If you don't already have a bootable Windows 10 installation media, you can create one using the Media Creation Tool. You'll need a USB flash drive (at least 8 GB) or a blank DVD and a working Windows computer to create the installation media.
Please feel free to let me know if you have any further updates, thanks.
Best regards
Derrick Qian | Microsoft Community Support Specialist