0X80100012

SCARD_E_SYSTEM_CANCELLED (0x80100012) Fix for Smart Card Readers

Windows Errors Intermediate 👁 9 views 📅 May 26, 2026

This error pops up when a smart card read operation gets killed by the system during shutdown or logoff. Here's why it happens and how to stop it.

When This Error Shows Up

You're sitting there, smart card reader plugged in, trying to authenticate to a VPN or sign a document. Everything looks fine. Then—bam—you get SCARD_E_SYSTEM_CANCELLED (0x80100012). The action was canceled by the system.

This almost always happens during a logoff or shutdown sequence. I've seen it most often with clients running Windows 10 22H2 or Windows 11, especially when they have a smart card reader from Gemalto or HID Global. Had a client last month whose entire remote access setup died because this error showed up every time they tried to use their PIV card right before logging off.

What's Actually Going On

The root cause is simple: the Windows Smart Card Resource Manager service or the reader driver gets a system-wide cancel signal—usually because Windows is shutting down or the user session is ending. The smart card API sees that cancel request and kills your read operation.

But here's the thing: sometimes the cancel signal gets sent too early. Maybe the driver's polling the card while the service is shutting down. Or a background app (like a certificate enrollment client) is trying to read the card when the system's halfway out the door. Windows doesn't care about your card read when it's trying to close up shop.

In rarer cases, it's a driver that doesn't handle the cancel properly—it sends the signal even when nothing's shutting down. That's the one you can actually fix.

How to Fix It

Skip the generic advice about restarting the service—that's a band-aid. Here's what actually works.

Step 1: Check for Pending Logoffs or Shutdowns

Open a command prompt as admin and run this:

shutdown /a

If it says no shutdown in progress, good. If it aborts one, try your card read again immediately. If the error disappears, you've got a scheduled task or group policy forcing a shutdown when you don't expect it.

Step 2: Restart the Smart Card Service Properly

Don't just stop and start it—do it clean:

  1. Open Services.msc
  2. Find Smart Card and Smart Card Device Enumeration Service
  3. Right-click each, select Stop
  4. Wait 10 seconds
  5. Start them both again

Step 3: Update the Card Reader Driver

This is where I've seen it fixed most often. Head to Device Manager, find your smart card reader under Smart card readers. Right-click, choose Update driver, then Browse my computer for drivers. Pick Let me pick from a list. If there's a newer driver from the manufacturer (not Microsoft's generic one), use that.

If you're using a USB reader, try the manufacturer's own driver from their site. Gemalto and HID both have specific drivers that handle the cancel signal better than the default Windows ones.

Step 4: Disable Fast Startup

Fast Startup messes with driver state on shutdown. Turn it off:

  1. Open Control Panel → Power Options
  2. Click Choose what the power buttons do
  3. Click Change settings that are currently unavailable
  4. Uncheck Turn on fast startup
  5. Save and reboot

Step 5: Kill Background Polling Apps

If you have certificate enrollment software or a VPN client that polls the smart card (like Cisco AnyConnect or Palo Alto GlobalProtect), those can trigger the cancel if they're closing during a logoff. Disable their auto-start for a test. Open Task Manager, go to Startup, and turn off anything that looks like a smart card helper. Restart and test.

If It Still Fails

Check Event Viewer under Windows Logs → System. Filter for source SCardSvr. Look for event IDs 400 or 700. Those will tell you if the service is dying before your read completes. If you see frequent service crashes, reinstall the driver completely: uninstall the reader from Device Manager (check Delete driver software), reboot, then reinstall the latest driver from the manufacturer.

One last thing: USB power management can interfere. In Device Manager, right-click each USB Root Hub, go to Power Management, and uncheck Allow the computer to turn off this device to save power. I've seen this fix stubborn cases where the reader lost power during a sleep transition.

That client with the PIV card? Turned out Fast Startup was enabled and their Dell dock was cutting power to the reader during shutdown. Disabled Fast Startup and updated the dock's USB driver. Problem gone.

Was this solution helpful?