Stuck in an infinite loop involving the PIN

Will Boyd 20 Reputation points
2025-12-11T06:47:14.9833333+00:00

Having an issue with my PIN and not being able to reset it.

Theres no side tab in settings I could go to, resetting my password key doesn’t reset my PIN number, and I don’t know what my PIN number is.

the loop starts on my PC’s login screen. I can’t sing in bc I don’t have my PIN number. I go to reset my pin by clicking “I forgot my PIN” and it says there’s an error after I just signed in with my passkey using my phone, which works perfectly fine. It asks if I’m sure I want to reset my PIN and I click continue and it says “Something went wrong” and I wasn’t able to setup the PIN. Retrying does nothing, skipping the PIN reset entirely doesn’t change anything since it takes me back to the PIN login screen for my pc. I can’t even go into my Microsoft account on my PC because of it, can’t reset, change, or even tell what my current PIN is set to. Am I just dumb in this situation or is it bugged to hell?

I can restart and access Admin Console by the way but I don’t know any console cmds. And restarting does nothing. Same with shutting it down and turning it back on. I can access my entire account through my phone, just can’t even touch my PC anymore due to this random PIN number.

Windows for home | Windows 11 | Settings
0 comments No comments
{count} votes

Answer accepted by question author
  1. Ron P 155 Reputation points
    2025-12-11T10:59:38.92+00:00

    You can also enable the built-in admin account to log into Windows first and then reset your PIN.

    Step 1: Access the Command Prompt in Windows RE

    On the PC's login screen, click the Power icon.

    Hold down the Shift key on your keyboard and click Restart. Keep holding Shift until you see the Choose an option screen.

    Select Troubleshoot.

    Select Advanced options.

    Select Command Prompt.

    Step 2: Load the System Registry Hive

    You must manually load the registry files from your Windows installation to modify them.

    Determine the Windows Drive Letter: Try D: or C: and use the dir command to confirm the partition containing the Windows folder. Assume your Windows is on the D: drive.

    1. Start the Registry Editor: regedit
    2. Load the Hive:

    In the Registry Editor, click and select HKEY_LOCAL_MACHINE in the left pane.

    Click the File menu > Load Hive....

    • Navigate to your Windows directory and find the SAM (Security Accounts Manager) registry file: D:\Windows\System32\config\SAM (Remember to replace D: with your actual drive letter) In the dialog box that appears, enter a temporary name (e.g., TempSAM) and click OK.

    Step 3: Modify the Registry Key Value to Enable Administrator Account

    Now you will modify the binary data under TempSAM to enable the built-in Administrator account.

    1. Navigate to the following path: HKEY_LOCAL_MACHINE\TempSAM\Domains\Account\Users\Names\Administrator
      • In the right pane, note down the RID (Relative Identifier) corresponding to this account. This is usually found in the parent Users folder and is a four-digit hexadecimal value (e.g., 000001F4).
    2. Navigate to the account's data path: HKEY_LOCAL_MACHINE\TempSAM\Domains\Account\Users\[Your RID, e.g., 000001F4] Double-click the F value in the right pane (this is a REG_BINARY value). In the binary editor, locate the 59th byte of data (or the 15th value on line 0038). Crucial: The default value for this byte is typically 11 (which indicates the account is disabled).
        Change this byte's value from __`11`__ to __`10`__.
      
           Click __OK__.
      

    Step 4: Unload the Hive and Restart

    In the left pane, click and select your temporary hive HKEY_LOCAL_MACHINE\TempSAM.

    Click the File menu > Unload Hive....

    Close the Registry Editor and the Command Prompt.

    On the Choose an option screen, select Continue to restart and boot into the Windows login screen.

    Step 5: Log In and Recover

    After the restart, you should now see the Administrator account listed on the login screen. It should not require a password (unless one was set previously).

    1. Log in using the Administrator account.
    2. Once logged in, you can use the net user command (in an elevated Command Prompt) to reset your main account's password, or you can delete the corrupted NGC folder to fix your PIN issue permanently.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-11T06:47:27.5133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like you're experiencing a frustrating issue with your PIN on Windows. Here are some steps you can take to try to resolve the problem:

    1. Reset PIN from Lock Screen: Since you mentioned that you can access the Admin Console, you might want to try resetting your PIN from the lock screen. If the PIN credential provider is not selected, expand the Sign-in options link and select the PIN pad icon. Then, select I forgot my PIN and follow the instructions. Make sure to choose an authentication option that you have access to.
    2. Use Password to Reset PIN: If you can sign in with your password, you can also reset your PIN by going to Settings > Accounts > Sign-in options and selecting PIN (Windows Hello) > I forgot my PIN. This requires that you have signed in with an alternate credential.
    3. Network Connectivity: If you are using a hybrid deployment, ensure that your device is connected to the corporate network, as this is required for a destructive PIN reset. If you are using Microsoft Entra, make sure you have the necessary connectivity to domain controllers.
    4. Check Group Policy Settings: If you have access to the Group Policy Editor, ensure that the Use PIN Recovery policy is enabled under Computer Configuration > Administrative Templates > Windows Components > Windows Hello for Business. This setting allows users to reset their PINs.
    5. Error Messages: If you receive specific error messages during the PIN reset process, it may be helpful to note those as they can provide clues about what might be wrong. You can also check for any known issues related to PIN reset on Microsoft Entra joined devices if applicable.

    If these steps do not resolve the issue, you may need to contact Microsoft Support for further assistance, especially if there are persistent errors during the PIN reset process.


    References:

    0 comments No comments

  2. Will Boyd 20 Reputation points
    2025-12-11T20:00:34.11+00:00

    I solved my issue, at least temporarily. Factory reset the PC. It asked me to put in a new PIN which I took careful note of exactly what I put in. Haven’t gotten stuck or any extra prompts that put me back into a loop. But it at least gave me access to login in to my own PC.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.