Fix Cannot Add or Modify PIN in Windows 11
In this article
To fix the "Something went wrong" or "Cannot add or modify PIN" error in Windows 11, you must clear the Ngc folder where Windows stores biometric and PIN data, or ensure the TPM (Trusted Platform Module) is enabled in your BIOS. This error usually occurs because the local security database has become corrupted or the hardware security chip is not communicating correctly with the operating system. Note that menu labels may differ slightly depending on your specific version of Windows 11, your device manufacturer, or your regional settings.
What You'll Need
- An administrator account on the Windows 11 PC.
- Your Microsoft account password (since you will be removing the PIN, you will need the password to log back in).
- Access to the BIOS/UEFI menu (usually accessed via a function key during startup).
- A stable internet connection to re-verify your account identity.
Step-by-Step
- Restart the Computer
Before attempting deep system changes, perform a full restart. Sometimes a pending Windows Update or a temporary glitch in the Local Security Authority (LSA) process prevents PIN modifications. If the issue persists after a reboot, proceed to the next step. - Clear the Ngc Folder
Windows stores PIN information in a hidden system folder called Ngc. If this folder contains corrupted data, Windows cannot overwrite it with a new PIN. To clear it:
- Open File Explorer and navigate to
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft. - If you cannot see the AppData folder, click View > Show > Hidden items in the top menu.
- Right-click the Ngc folder and select Delete. If you receive a permission error, you must take ownership of the folder.
- To take ownership: Right-click the Ngc folder > Properties > Security tab > Advanced. Click "Change" next to the Owner name, type your Windows username, click Check Names, and click OK. Check the box "Replace owner on subcontainers and objects" and click OK.
- Now, delete the contents of the Ngc folder.
- Restart your PC and go to Settings > Accounts > Sign-in options to set up a new PIN.
- Open File Explorer and navigate to
- Enable TPM in BIOS/UEFI
Windows Hello PINs rely on the Trusted Platform Module (TPM) 2.0. If TPM is disabled or glitched, you cannot modify your PIN.
- Restart your PC and repeatedly press the BIOS key (commonly F2, F10, F12, or Del) before the Windows logo appears.
- Navigate to the Security or Advanced tab using the arrow keys.
- Look for settings labeled "TPM," "PTT," "Security Chip," or "fTPM."
- Ensure the status is set to Enabled or Active.
- Save the changes and exit (usually F10). Once Windows boots, try adding the PIN again.
- Check Windows Hello Services
Certain background services must be running for the PIN interface to function.
- Press Win + R, type
services.msc, and press Enter. - Scroll down to find the CNG Key Isolation service.
- Right-click it and select Properties. Ensure the Startup type is set to "Manual" or "Automatic." If it is stopped, click Start.
- Do the same for the Credential Manager service.
- Press Win + R, type
- Disable "Require Windows Hello sign-in for Microsoft accounts"
Sometimes a conflict in the account security settings prevents PIN changes.
- Go to Settings > Accounts > Sign-in options.
- Under "Additional settings," find the option "For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device (Recommended)."
- Toggle this switch to Off.
- Close the Settings app, reopen it, and attempt to modify your PIN.
- Run the SFC and DISM Tools
If system files related to the login process are corrupted, the PIN menu may fail.
- Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
- Type
sfc /scannowand press Enter. Wait for the process to complete. - After SFC finishes, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Restart your computer and check the PIN settings.
Common Mistakes
- Using a Local Account without a Password: Windows 11 often requires a password to be set for the account before it allows the creation of a PIN. If you have a blank password, create one first.
- Deleting the Wrong Folder: Ensure you are deleting the contents of the
Ngcfolder specifically. Deleting other folders in the ServiceProfiles directory can cause system instability or prevent Windows from booting. - Ignoring the BIOS Warning: Some users attempt to fix PIN issues in Windows when the hardware TPM is physically disabled in the BIOS. Software fixes will not work if the hardware security chip is off.
- Forgetting the Microsoft Account Password: Since clearing the Ngc folder removes the current PIN, you will be forced to log in using your full password. If you have forgotten your password, reset it via another device before clearing the folder.
Tips
- Use a Simple PIN First: When testing if the fix worked, try a simple 4-digit numeric PIN. Once that is established, you can change it to a more complex one including letters and symbols.
- Check for Updates: Always check Windows Update (Settings > Windows Update) before performing manual folder deletions. Microsoft frequently releases patches for Windows Hello bugs.
- Create a Restore Point: Before taking ownership of system folders or editing the registry, search for "Create a restore point" in the Start menu and create one. This allows you to undo changes if something goes wrong.
- Verify Account Sync: If you are using a work or school account, your organization may have a "Complexity Requirement" policy that prevents certain PINs from being used. Check with your IT admin if you see a message saying "Your organization requires a PIN with letters."
Troubleshooting
If you have cleared the Ngc folder and enabled TPM but still cannot add a PIN, try the following steps in order:
Check for Third-Party Antivirus Conflicts: Some aggressive third-party security suites block access to the Local Security Authority. Temporarily disable your antivirus and try to set the PIN again. If it works, add the Windows Sign-in options to your antivirus exclusion list.
Boot into Safe Mode: If the Settings app crashes when you click on PIN options, boot into Safe Mode with Networking. This disables non-essential drivers that might be interfering with the security chip. Once in Safe Mode, try to remove any existing PIN remnants in the Ngc folder.
Create a New User Profile: If the issue is limited to one user account, the user profile registry hive may be corrupted. Create a new local administrator account (Settings > Accounts > Other users > Add account). Log into the new account; if you can set a PIN there, the original profile is corrupted and you should migrate your files to the new one.
Reset the PC: As a last resort, use the "Reset this PC" feature. Go to Settings > System > Recovery > Reset PC. Choose "Keep my files" to avoid data loss, but be aware that all installed apps will be removed. This reinstalls the Windows core files and resets the security database completely.
Frequently Asked Questions
Why does it say "Something went wrong" when I try to change my PIN?
This is usually caused by a corruption in the Ngc folder or a communication failure between Windows and the TPM chip. Clearing the Ngc folder usually resolves this.
Is the PIN different from my account password?
Yes. A password is stored on Microsoft servers (for online accounts) or encrypted in the system, while a PIN is stored locally on your device's hardware security chip (TPM), making it more resistant to remote hacking.
Can I use Windows 11 without a PIN?
Yes, you can use a password or other biometric options. However, if you have "Require Windows Hello sign-in" enabled, Windows will push you to create a PIN for faster access.
Will deleting the Ngc folder delete my files?
No. The Ngc folder only contains the encrypted data used for Windows Hello (PIN and Biometrics). It does not contain your documents, photos, or applications.
What is TPM and why is it needed for a PIN?
TPM (Trusted Platform Module) is a physical chip on your motherboard that provides hardware-based security. Windows uses it to ensure the PIN is tied to that specific piece of hardware and cannot be stolen and used on another PC.
Do I need to be online to reset my PIN?
If you are using a Microsoft account, you will need an internet connection to verify your identity via password or two-factor authentication after the PIN has been cleared.