Your pin failing to let you enter your own Windows PC is extremely frustrating, especially when you know that it’s right. At its core, this error is most likely your TPM (Trusted Platform Module) losing sync with your system. When that happens, Windows can’t authenticate your PIN because PINs live in hardware.

The key difference is that a regular password gets sent to Microsoft’s servers for verification. Your PIN never leaves your device. Instead, it’s the key that unlocks a private cryptographic key stored inside your TPM. When you log in, Windows sends your PIN to the TPM, the TPM validates it, and then releases a signed confirmation that logs you in.

Because of this hardware-level setup, PIN problems are always local. If your TPM can’t verify your PIN, you’re locked out. The PIN itself is useless without that specific physical TPM. The good news is that there are a lot of methods to fix this. Here’s everything you need to know.

Why your PIN stopped working

Here are a few common reasons why your PIN might not be working:

  • Software updates corrupt the NGC folder (where your PIN data lives). Your PIN data falls out of sync with your TPM.
  • Credential corruption happens when cached login tokens break. This blocks PIN re-enrollment.
  • System file corruption breaks the authentication chain between Windows and your TPM.
  • Hardware changes like replacing your CPU or motherboard invalidate your TPM. The TPM is tied to your specific hardware, swap it and your PIN might not work.
  • BIOS or firmware changes can lock you out. Changing settings like Platform mode makes your encryption keys inaccessible.
  • Too many wrong PIN attempts trigger the TPM’s lockout. The TPM keeps counting failed attempts, and once it hits the limit, it locks you out permanently.

Solution 1: Use sign-in options fallback

1. Sign-in options only appear on the lock screen if you’ve enabled them in Settings > Accounts > Sign-in options first. Otherwise, it will not be displayed.

2. On the lock screen, click the sign-in options button, and then click the icon for your backup method (password, Smart Card, etc.) to switch to it.

Solution 2: Reset your PIN from the lock screen

1. On the lock screen, click “I forgot my PIN.” If you’ve set up an Authenticator app, you’ll see “Send notification.” Otherwise, provide your account password.

2. Open your Authenticator app and click the corresponding number for the sign-in request.

3. If two-step verification is enabled, approve the sign-in in the Authenticator app.

4. Confirm the PIN reset request.

5. Enter your new PIN and click OK.

Solution 3: Boot into Safe Mode with Networking

1. Click the Power button on the lock screen.

2. Press Restart while holding Shift. The system reboots into Windows Recovery Environment.

3. If locked out of the lock screen, force recovery through power on and hold the power button during the spinner animation. After 2 to 3 attempts, Windows enters recovery mode.

4. Select Troubleshoot > Advanced options > Startup settings

5. Select Startup settings.

Startup Settings in WinRE
the advanced options screen in windows 10

6. Click Restart.

Restart button in Startup Settings
the start screen of the windows 10 start menu

7. Press F5 to select “Enable Safe Mode with Networking” (entry 5).

Enable safe mode in WinRE Startup Settings
a screenshot of the start screen of windows 10

8. Windows uses locally cached credentials. Log in with your password if you previously logged in online.

Sign-in screen with password
a picture of sheep grazing in a field
Safe mode desktop
a computer screen with a black background and a pink arrow

Important: If you have “Only allow Windows Hello sign-in for Microsoft accounts” enabled, Safe Mode won’t work and you’ll have to try a different method.

Solution 4: Delete the NGC folder

The NGC folder contains Windows Hello data, deleting it forces a new PIN setup.

File Explorer method

1. Navigate to C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\ and right-click NGC > Properties >Security tab >Advanced.

NGC security properties window
a screenshot of a computer screen with the settings highlighted

2. Click Change next to “Owner: Unable to display current owner.” Enter your Windows username or ‘Administrators’ > Check Names > OK.

Change owner in NGC properties
a screenshot of the settings dialogger in windows 10

3. Ensure “Replace owner on subcontainers and objects” is checked. Click Apply and Confirm the following prompts.

Replace owner on subcontainers and objects 2
a screenshot of a computer screen with a window open
Replace owner on subcontainers and objects 3
a screenshot of a computer screen with the settings highlighted

4. Ensure Full control is set. If not, click Edit and check the option.

Set full control in NGC
a screenshot of a window with the settings highlighted

5. Open the NGC folder and delete the contents.

Delete NGC folder contents
a screenshot of a web page with the search box highlighted

Command Prompt method

1. Open Command Prompt as administrator. Run:

takeown /f C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC /r /d y
  • /f specifies the file/folder.
  • /r apply to subdirectories recursively.
  • /d y answer Yes at confirmation prompts.
Command prompt: NGC
a screenshot of a computer screen with a black background

2. Wait for the command to complete and then run: icacls C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC /grant administrators:F /t to grant Full control access.

Grant full control access through CMD
a screenshot of a computer screen with the command command highlighted

3. Next run: rd /s /q C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC

Delete NGC contents through CMD
a computer screen with a black background and a red arrow

4. Restart the machine. You’ll be prompted for your password.

Windows sign-in screen
a screen shot of a web page with a picture of a mountain in the background

5. The PIN setup procedure starts automatically.

Create PIN for Windows
a computer screen with a picture of a person on it

6. Enter your new PIN and click OK.

Confirm new PIN for Windows
a screenshot of the windows security settings screen

Important: If PIN setup doesn’t launch, go to Settings > Accounts > Sign-in options and create one manually.

Solution 5: Clear the TPM

Before clearing, if BitLocker is on, get your Bitlocker recovery key or suspend BitLocker.

1. Run: manage-bde -protectors -get C: to check the recovery key status.

Get Bitlocker recovery key
a screenshot of a computer screen with a red arrow

2. Then run: manage-bde -protectors -disable C: -rebootcount 1 to suspend BitLocker for one reboot.

Suspend Bitlocker for one reboot
a screenshot of a computer screen with a red arrow

From Windows Settings

1. Press Win + R, type tpm.msc, press Enter.

Open TPM from run dialog
a computer screen with the type of program folder

2. The TPM Management Console opens. Click “Clear TPM” on the top right. Confirm by clicking Restart.

Clear TPM
a screenshot of a computer screen with a blue background

3. The system restarts. Follow any on-screen confirmation prompts.

» TPM not detected? Read our guide

From UEFI firmware

1. Press Del, F2, F10, or F12 during startup to enter UEFI.

2. Navigate to the Security section.

3. Find “Clear Security Chip” (name varies by manufacturer). You may see “Physical Presence for Clear” which prompts for confirmation.

TPM in BIOS
a screenshot of a screen shot of a computer

4. Confirm the clear. Select Save and Exit (F10).

Clear encryption keys in BIOS
a screenshot of a computer screen showing a security message
Save and exit BIOS
a screenshot of a computer screen with a message

5. If BitLocker was suspended before clearing TPM you will see the lock screen after the restart, otherwise you will have to enter the BitLocker key.

Bitlocker recovery window
a screenshot of a blue screen with the text bitlocker recovery
Set up PIN on sign-in screen
a blue background with the john doe button highlighted

6. Enter your account password to set up the new PIN. If two-factor authentication is enabled on your account, approve the sign-in request in your Authenticator app.

Solution 6: Repair system files

If the above steps don’t work, corrupted Windows files might be the culprit. Use the Windows Recovery Environment to scan and repair.

1. Boot into Windows Recovery Environment. Select Troubleshoot > Advanced options > Command Prompt.

Open Command Prompt from WinRE
the advanced options screen in windows 10

2. First, identify your Windows installation: Run diskpart and then list volume. Note which drive has Windows installed and where the bootloader is located by Size, Label, and Filesystem.

3. Type exit to leave diskpart. Run: sfc /scannow /offbootdir=C:\ /offwindir=E:\Windows

Diskpart command from Command Prompt
a screenshot of a computer screen with a window in the background

4. Replace the drive letters with your actual Windows and boot drives. This verifies protected system files and replaces any corrupted login or credential provider files.

Replace drive letters in Command Promp
a screenshot of a computer screen with a window highlighted

5. Run: dism /image:E:\ /cleanup-image /restorehealth. Replace E: with your Windows drive.

DISM command in Command Prompt
a screenshot of a computer screen with a red arrow

6. If the system is offline or can’t find necessary files, you may need a Windows installation USB. First, identify the index running: dism /get-wiminfo /wimfile:E:\sources\install.wim and then run: dism /image:E:\ /cleanup-image /restorehealth /source:wim:D:\sources\install.wim:6 /limitaccess . Replace the drive letters and index number (example: 6) accordingly.

Installation ID
a screenshot of a computer screen with a red arrow

7. Reboot your system. If both scans complete successfully but authentication problems persist, the issue likely isn’t corrupted system files.

» Learn more about the DISM command in Windows 11

Solution 7: Reset Windows Hello policies via Intune or Group Policy

For organizations managing multiple machines, reset Windows Hello for Business policies across your domain.

Microsoft Intune

1. Sign in to Intune admin center and go to Devices > Scripts and remediations. Create a script package (detection & remediation).

Detection template:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

# current user SID
try {
    $crtUsrSid = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
} catch {
    exit 0
}
if (-not $crtUsrSid) {
    exit 0
}
# NGC path (Windows Hello container)
$ngcPath = "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC\$crtUsrSid"
# check if Hello container exists and is populated
if (Test-Path $ngcPath) {
    $items = Get-ChildItem -Path $ngcPath -Recurse -ErrorAction SilentlyContinue
    if ($items.Count -gt 0) {
        Write-Output "Windows Hello container detected."
        exit 1
    }
}
exit 0
Script copied to clipboard

Remediation template:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

        try {
    # double-check presence before attempting deletion
    $crtUsrSid = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
    $ngcPath = "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC\$crtUsrSid"
    if (-not (Test-Path $ngcPath)) {
        Write-Output "No Windows Hello container found. Nothing to remediate."
        exit 0
    }
    # actual reset
    $process = Start-Process -FilePath "certutil.exe" `
        -ArgumentList "-DeleteHelloContainer" `
        -Wait -PassThru -WindowStyle Hidden
    if ($process.ExitCode -eq 0) {
        Write-Output "Windows Hello container deleted successfully."
        exit 0
    } else {
        Write-Output "certutil failed with exit code $($process.ExitCode)"
        exit 1
    }
}
catch {
    Write-Output "Remediation error: $_"
    exit 1
}
Script copied to clipboard

2. Set “Run this script using the logged on credentials” to Yes.

3. In the Assignments tab, assign this to the affected device group. At next login, old PIN data deletes and Windows Hello re-enrollment prompts.

4. Optional: Add a remediation flag to track which users already performed the reset (prevents resetting every time the script runs).

Detection:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

[...]
$flagPath = "HKCU:\Software\CompanyName\WHReset"
$flagName = "ResetDone"
try {
$flag = Get-ItemProperty -Path $flagPath -Name $flagName -ErrorAction Stop
if ($flag.$flagName -eq 1) {
# reset was performed
exit 0
}
} catch {
# flag not present, continue
}
Script copied to clipboard

Remediation:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

        [...]
$flagPath = "HKCU:\Software\CompanyName\WHReset"
$flagName = "ResetDone"
if (-not (Test-Path $flagPath)) {
New-Item -Path $flagPath -Force | Out-Null
}
New-ItemProperty -Path $flagPath `
-Name $flagName `
-Value 1 `
-PropertyType DWORD `
-Force | Out-Null
Write-Output "Reset flag set."
exit 0
Script copied to clipboard

» Compare Atera and Microsoft Intune in our detailed guide

Group Policy

The remediation script can be added as a logon script:

1. Open Group Policy Editor and go to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) > Logon.

2. Add the remediation script as a PowerShell script (ensure the location is accessible).

3. In the same GPO, enable User Configuration > Administrative Templates > Windows Components > Windows PowerShell > Turn on Script Execution > Allow local scripts and remote signed scripts.

Note: The script runs after logon, so re-enrollment happens at next login.

» Learn more about group policy management with Atera

Solution 8: Rebuild your Windows profile (last resort)

If all other steps fail, regain access to your data by rebuilding your profile.

1. Boot into WinRE Command Prompt or use an account with administrator privileges.

2. Identify the Windows drive.

3. Back up your user profile: robocopy D:\Users\Username F:\Backup\Username /E /XD AppData\Local\Microsoft\NGC /COPYALL /XJ /R:1 /W:1 /LOG:F:\Backup\backup_log.txt. Replace drive letters accordingly. This skips the NGC folder (which cannot be restored) and preserves other data.

4. Go to Settings > Accounts > Other Users. Select the problematic username and click Remove, then confirm.

5. Recreate the user by clicking Add account. Alternatively, from Command Prompt run: net user username password /add

followed by: net localgroup administrators username /add (replace username and password accordingly).

6. Migrate your backup: robocopy "D:\Backup\olduser" "C:\Users\newuser" /E

Warning: Restoring the entire folder could reintroduce the original problem. Selectively copy only required configuration files and data instead.

7. Fix permissions: icacls "C:\Users\username" /setowner username /T /C. This ensures the user can control their directory.

8. As a last resort, boot from an installation USB and select Repair my PC.

» Learn more about Automatic Repair in Windows 11

A smarter fix starts at the platform level

Most IT platforms can push patches and run scripts, but they still depend on your team to define every rule, write every workflow, and anticipate every failure scenario. That’s fine until your ticket queue starts filling up with the same PIN error across a dozen machines and nobody has time to chase it down.

Atera approaches this differently with Autonomous IT. Rather than relying on static rules, its AI agents learn from real interactions and improve over time. Robin by Atera handles end-user PIN issues directly, checking account status, guiding users through resets, and confirming resolution without pulling a technician in. AI Copilot gives technicians script generation, instant ticket summaries, and the context to spot whether a PIN failure is a one-off or something spreading across the environment.

Was this helpful?

* Scripts are provided for your benefit. You understand and acknowledge that when downloading and/or copying and/or using the Scripts: (i) you may be exposed to Scripts from a variety of sources, (ii) Atera is not responsible and takes no liability for the accuracy, usefulness, integrity, lawfulness, title or infringement, security, functionality or Intellectual Property Rights of, or relating to, such Scripts; and (iii) the Scripts are provided “AS IS” and “AS AVAILABLE”, and may have errors, and may not be malware-free, and that your interactions with, and use of, the Scripts is at your sole risk and free will. You hereby agree to waive, and hereby do waive, any legal or equitable rights or remedies you may have against Atera with respect to the Scripts.

Related Articles

How to fix the “Reboot and select proper boot device” error

Read now

How to enable or disable the Notification Center in Windows 11

Read now

How to remove OneDrive from File Explorer

Read now

How to enable and disable kernel mode

Read now

Endless IT possibilities

Boost your productivity with Atera’s intuitive, centralized all-in-one platform