0XC0000380

Smart card wrong PIN error 0xC0000380 fix

STATUS_SMARTCARD_WRONG_PIN means the PIN you entered doesn't match what's on the card. Almost always a typo or a locked card.

1. You're typing the wrong PIN (most common)

I've seen this dozens of times in enterprise deployments. The user swears they're typing the right PIN, but the card disagrees. Here's the thing — smart card PINs are case-sensitive on most cards, and they often have a minimum length (usually 4-8 digits). The culprit here is almost always one of these:

  • Caps lock is on and you don't notice
  • Num lock is off on a laptop without a dedicated number row
  • You're mixing up the PIN with a different card's PIN (common if you carry multiple cards)
  • The card was issued with a temporary PIN and you never changed it

Fix: Triple-check the PIN. Type it slowly in Notepad first (without submitting it) to see what characters actually go through. If you're using a Lenovo or Dell laptop, the number pad overlay (Fn+key) can cause unexpected digits. Try typing the PIN on the top number row instead of the numpad.

If you're on Windows 10/11 with a YubiKey or similar, remember that some smart cards require a PIN + touch confirmation. You'll see the error if you type the PIN but don't touch the hardware button.

2. The smart card is locked (PIN retry count hit zero)

This is the second most common cause, and it catches people off guard. Smart cards have a built-in retry counter — usually 3 to 10 attempts before the card locks itself permanently (well, until you get the unlock code). When the counter hits zero, the card won't accept any PIN, even the correct one. You'll still get 0xC0000380, not a different error, which confuses people.

How to check: On Windows, open an admin command prompt and run:

certutil -scinfo

Look for the line that says "Remaining PIN attempts" or "Retry count." If it's 0, the card is locked. If it's 1 or 2, you're on thin ice.

Fix: You need the PUK (PIN Unlock Key) code. This is usually printed on the card packaging or provided by your IT department. On Windows, insert the card, then go to Settings > Accounts > Sign-in options > Security Key and choose "Reset PIN." Enter the PUK and set a new PIN. If you don't have the PUK, you're cooked — request a new card from your admin.

Pro tip: Some smart card middleware (like ActivClient or Gemalto) has a dedicated PIN unlock tool. Check your system tray for a smart card icon. Right-click it and look for "Unlock PIN" or "Reset PIN."

3. Corrupted or missing smart card driver or middleware

Less common, but I've seen it on fresh Windows 11 installs where the smart card reader driver wasn't pulled by Windows Update. The card communicates fine, but the PIN verification pipeline is broken. The error looks identical — you type the PIN, it fails instantly, no retry counter decrement.

How to spot this: Check Device Manager. If your smart card reader shows up under "Unknown devices" or with a yellow bang, that's your problem. Also check if the middleware (like ActivClient, Gemalto IDGo, or YubiKey Manager) is installed — the built-in Windows smart card service won't work with all cards.

Fix:

  1. Open Device Manager, right-click the smart card reader, and select Update driver > Browse my computer > Let me pick from a list. Choose "Microsoft Usbccid Smartcard Reader" if it's a generic reader. For branded readers (e.g., HID OMNIKEY), download the vendor driver from their site.
  2. Reinstall the middleware. Uninstall it first, reboot, then reinstall. For YubiKeys, install YubiKey Manager. For Gemalto cards, install the IDGo 800 software.
  3. After driver install, open an admin cmd and run:
    sc start scardsvr
    This forces the Smart Card service to restart.

If the error persists after driver reinstall, the card itself might be corrupted. Try the card on another machine with the same middleware. If it works there, the issue is your machine's reader or driver stack.

Quick reference summary

CauseSymptomFixTime
Wrong PIN typedError appears immediately, retry count unchangedCheck caps lock, num lock, type PIN in Notepad first1 minute
Card locked (retry count = 0)Error appears after several attempts, retry count was 1 or 0Use PUK code to reset PIN, or get new card5 minutes
Driver/middleware corruptedError appears instantly, no retry count decrement, yellow bang in Device ManagerUpdate reader driver, reinstall middleware, restart Smart Card service10 minutes

One last thing — if you're in a corporate environment with Active Directory, there's a group policy that can lock the card after a set number of bad PINs. Check with your admin before you burn through all retries. That policy overrides everything.

Related Errors in Windows Errors
0X8029020E Fix TBSIMP_E_LIST_NOT_FOUND 0X8029020E Error 0XC0000163 STATUS_UNDEFINED_CHARACTER (0XC0000163) — Fix Unicode Character Errors 0XC00D1BA0 NS_E_INVALID_INPUT_STREAM (0XC00D1BA0) fix: corrupt media source 0XC00D1054 Windows Media Player NS_E_WMG_INVALIDSTATE fix

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.