How to Fix ‘Your PIN Is No Longer Available’ in Windows 11

Booting up your Windows 11 computer only to be stopped at the lock screen by the error message: “Your PIN is no longer available due to a change to the security settings on this device” or “Something happened and your PIN isn’t available. Click to set up your PIN again” prevents you from signing into your user profile. Clicking “Set up my PIN” often loops endlessly, triggers an 0xd000a002 exception, or demands Microsoft Account verification without opening an active network window. This lockout is caused by a communication breakdown between Windows Hello, the Trusted Platform Module (TPM 2.0), and the local Next Generation Cryptography (Ngc) security database. This tutorial details how to bypass the login screen loop, clear damaged TPM containers, and re-establish your Windows Hello credentials.

What Causes the PIN Unavailable Error in Windows 11?

Windows Hello PINs are not stored as plain text passwords; they are hardware-bound cryptographic keys secured by TPM 2.0. Triggers for PIN invalidation include:

  • Corrupted Ngc Security Folder: Damaged access control lists (ACLs) or corrupted token files in C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc.
  • BIOS / UEFI Firmware Updates: Motherboard BIOS updates clearing or re-initialising TPM/fTPM cryptographic hierarchy states.
  • Hardware Component Changes: Replacing a motherboard, processor, or graphics card triggering Windows Secure Boot tamper-detection mechanisms.
  • System Restore Rollbacks: Reverting Windows to an earlier restore point where current TPM encryption keys mismatch historical registry entries.
  • Disabled CNG Key Isolation Service: The background KeyIso system service failing to start, preventing Windows from unlocking private keys.

Step 1: Sign In Using Your Microsoft Account Password

Before attempting command-line resets, determine whether alternative authentication options are available on the lock screen.

  1. On the Windows 11 lock screen beneath the PIN entry field, look for a link labeled Sign-in options.
  2. Click Sign-in options to reveal alternative authentication icons:
    • Click the Key icon to switch from Windows Hello PIN to standard Password entry.
  3. Enter your full Microsoft Account password (or local administrator account password) and press Enter.
  4. Ensure your computer is connected to the internet (via Wi-Fi or Ethernet) if using a Microsoft Account, as Windows must verify updated cloud password hashes.
  5. Once signed in to your desktop, navigate to Settings > Accounts > Sign-in options > PIN (Windows Hello), click Remove, and set up a fresh PIN.

Step 2: Delete the Ngc Folder in Safe Mode

If alternative sign-in options are absent, booting into Safe Mode allows you to delete the corrupted Ngc security container, forcing Windows to regenerate PIN storage.

  1. On the lock screen, hold down the Shift key on your keyboard, click the Power icon in the bottom-right corner, and select Restart. Keep holding Shift until the blue Choose an option screen appears.
  2. Navigate to Troubleshoot > Advanced options > Startup Settings and click Restart.
  3. Upon reboot, press 4 or F4 to enter Safe Mode (or press 6 for Safe Mode with Command Prompt).
  4. In Safe Mode, sign in with your administrative account password.
  5. Press Win + E to open File Explorer, click the View tab, select Show, and ensure Hidden items is ticked.
  6. Navigate to the following protected directory:
    C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\
  7. Locate the folder named Ngc.
  8. If Windows reports access denied, right-click Ngc, select Properties > Security > Advanced, click Change next to Owner, type Administrators, click Check Names, click OK, and tick Replace owner on subcontainers and objects.
  9. Select the Ngc folder, press Shift + Delete, and confirm permanent deletion.
  10. Restart your computer into normal mode. Windows will boot to the login screen and allow you to configure a fresh PIN without error.

Step 3: Reset TPM Keys via the Windows Recovery Environment (WinRE)

If you cannot access Safe Mode, clearing the TPM hardware key container from the recovery command prompt forces a hardware re-authentication handshake.

  1. Boot into Windows Recovery Environment by holding Shift while clicking Restart.
  2. Select Troubleshoot > Advanced options > Command Prompt.
  3. In the black command window, execute the following commands to take ownership and rename the corrupted Ngc folder:
    takeown /f C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc /r /d y
    icacls C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc /grant administrators:F /t
    ren C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc Ngc.old
  4. Note: In the recovery environment, your Windows drive may be assigned drive letter D: instead of C:. Type dir D:\Windows to confirm the correct drive mapping.
  5. Close the Command Prompt window and click Continue to boot into Windows 11.

Step 4: Verify the CNG Key Isolation Background Service

Once back on the Windows desktop, ensure that the cryptographic isolation service is set to start automatically.

  1. Press Win + R, type services.msc, and press Enter.
  2. Scroll down to find CNG Key Isolation (service name: KeyIso).
  3. Right-click on CNG Key Isolation and select Properties.
  4. Ensure the Startup type is set to Manual or Automatic.
  5. If the service status is stopped, click Start, then click Apply and OK.

Troubleshooting Summary for Windows 11 PIN Unavailable Error

Remediation Step System Level Action Required
Sign-in Options Override Lock Screen UI Click Key icon to sign in via Microsoft account password
Delete Ngc Folder Filesystem Container Take ownership and delete C:\...\LocalService\...\Ngc in Safe Mode
WinRE Recovery Commands Command-line elevation Execute takeown, icacls, and rename Ngc to Ngc.old
Key Isolation Service Windows Background Services Verify KeyIso service is active in services.msc

Deleting corrupted Ngc token directories and restoring TPM cryptographic bindings eliminates the “PIN is no longer available” error, allowing seamless biometric and PIN access to Windows 11.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.