The NGC folder in Windows 11 stores data used by Windows Hello, including information associated with your sign-in PIN. If the folder becomes damaged, Windows may refuse to set up or use a PIN. Clearing its contents can help, but it also removes the existing PIN credentials, so you’ll need to create a new PIN afterward. Before you begin, make sure you can sign in to your account another way.
This guide explains the safer options first, then shows how to clear the NGC folder if ordinary troubleshooting doesn’t work. Follow the steps carefully: the NGC folder is a Windows sign-in component, not a general-purpose cache.
What Is the NGC Folder?
Windows keeps the NGC folder at this location:
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc
The folder holds protected sign-in data associated with Windows Hello. That includes the credentials Windows uses for a PIN. A PIN is tied to a particular device; it is not the same as your Microsoft account password. Clearing NGC data can therefore remove the PIN saved on that PC, but it does not erase your personal files or reset your Microsoft account password.
Windows protects this folder, so opening or changing it may require administrator permissions. Don’t delete the wider Microsoft, Local, or LocalService folders. The steps below apply only to the contents of the NGC folder.
Before You Clear the NGC Folder
First, check that you can sign in using your account password or another available method. If you use a Microsoft account, confirm that you know its password. If you use a local account, make sure you know that password. A PIN reset is not a substitute for recovering a forgotten account password.
- Save your work and connect the PC to power if it’s a laptop.
- Make sure you have administrator access to Windows.
- If the device is encrypted with BitLocker, keep the recovery key somewhere accessible before making sign-in changes.
- If the PC belongs to an employer or school, contact its IT administrator. Policies may manage Windows Hello, and changing the folder’s permissions may be blocked or reversed.
If you’re unable to sign in to Windows at all, don’t try to clear NGC from the sign-in screen. Use the available account-recovery or password-reset options first, or contact your device administrator. Clearing the folder is intended for a user who can access Windows and has a problem with Windows Hello.
Try the Built-In PIN Options First
Windows provides sign-in options that may repair the problem without manually changing a protected system folder. Start with these methods; they are simpler and less likely to cause permission issues.
- Open Settings and select Accounts, then Sign-in options.
- Expand PIN (Windows Hello).
- If available, choose I forgot my PIN and follow the verification steps to create a new one.
- If you can sign in with a password and the PIN is working poorly, choose Remove, confirm your account credentials if prompted, restart, and set up a new PIN from the same page.
The labels may vary slightly depending on your Windows 11 version and account setup. If the PIN options are unavailable or the reset fails, check whether a security setting is requiring Windows Hello. In Settings > Accounts > Sign-in options, look for For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device. If that setting is enabled and you need to use a password to troubleshoot, turn it off temporarily, if Windows allows it.
After a successful PIN reset, there’s usually no reason to clear the NGC folder. Continue with the manual method only if the built-in options don’t resolve the issue.
How to Clear the NGC Folder in Windows 11
The manual process is to open the NGC folder, take ownership if Windows denies access, and delete the items inside it. Do not delete files elsewhere in the Windows profile. You may need to restart Windows before the folder will let you change its contents.
Step 1: Open the NGC Folder
Sign in to Windows with an administrator account. Open File Explorer, click the address bar, paste the path below, and press Enter:
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc
AppData is a hidden folder, but entering the full path in File Explorer’s address bar should take you directly to it. If Windows displays a message that you don’t have permission, choose Continue if that option appears. If access is still denied, use the ownership steps below.
Step 2: Take Ownership If Access Is Denied
You can change the folder’s permissions through File Explorer. Do this only for the NGC folder, and avoid applying the changes to its parent folders.
- Right-click the
Ngcfolder and select Properties. - Open the Security tab, select Advanced, and find the Owner field near the top.
- Select Change, enter Administrators, and choose Check Names. Confirm the result, then select OK.
- If shown, select the option to replace the owner on subcontainers and objects. Apply the change and close the dialogs.
- Open the folder’s advanced security settings again. Add the Administrators group and grant it Full control for the NGC folder and its contents.
Windows may display warnings while it updates permissions. Confirm only the prompts that refer to the NGC folder. If you’re unsure which permission setting to use, stop and use the built-in PIN reset or ask a trusted technician instead.
Optional: Use an Administrator Terminal
If you’re comfortable with commands, you can open Terminal (Admin) or Command Prompt (Admin) and run the following commands. They take ownership of the NGC folder and grant the built-in Administrators group access:
takeown /f "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc" /r /d Y
icacls "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc" /grant *S-1-5-32-544:F /t /c
Press Enter after each command and wait for it to finish. The second command uses the Windows security identifier for the Administrators group, which avoids relying on the group’s displayed name in a particular language. If either command reports an error, don’t broaden the permissions to other folders; return to the graphical method or ask an administrator for help.
Step 3: Delete the Contents of NGC
Once you can open the folder, select the items inside it and delete them. If File Explorer shows hidden items, you can leave the display setting as it is; focus on deleting only the contents of Ngc. Do not select or delete the Microsoft folder or any folder above NGC.
If Windows says a file is in use, close File Explorer and restart the PC. Sign in with your password rather than the PIN, then try again. If the folder remains locked, don’t use forceful deletion tools or scripts that affect other Windows directories. A managed device may prevent these changes by design.
Step 4: Restart and Set Up a New PIN
Restart Windows after deleting the contents. Then open Settings > Accounts > Sign-in options, expand PIN (Windows Hello), and choose Set up or Add. Follow the verification prompts and create a new PIN.
If you use facial recognition or fingerprint sign-in, test those options after the PIN is re-created. Windows Hello features can depend on the PIN as a recovery or setup method, so you may need to configure a feature again if Windows prompts you. The PIN must meet any length or complexity requirements set by your organization or Windows settings.
If Clearing NGC Doesn’t Fix the Problem
Deleting NGC data cannot solve every sign-in issue. If Windows still won’t create or accept a PIN, try these checks:
- Restart the PC and install available Windows updates from Settings > Windows Update.
- Confirm that the date and time are correct, and check that the device has an internet connection if account verification requires one.
- Run the Windows sign-in options again and use I forgot my PIN if it appears.
- Check for work or school account policies that control Windows Hello. Contact the organization’s IT team rather than attempting to bypass those policies.
- If Windows reports broader system errors, use Windows’ built-in troubleshooting and repair options instead of deleting additional system folders.
Don’t repeatedly clear the folder as a routine maintenance step. NGC isn’t a temporary files folder, and removing its contents simply to free space is unnecessary. Also avoid registry cleaners or unknown utilities that promise to “repair” Windows Hello; they can alter unrelated sign-in settings.
Conclusion
To clear the NGC folder in Windows 11, first confirm that you can sign in with your account password and try the PIN reset options in Settings. If those don’t work, open C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc, take ownership of that folder only if necessary, and delete its contents. Restart the PC and set up a new Windows Hello PIN. If the device is managed or you’re unsure about its permissions, ask the administrator before making changes.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.