Fix for SecureToken / SmartCard devices not mounting correctly on first try (Windows)
I want to share a solution that finally fixed my issue with SecureToken / Avtor smart card devices not mounting correctly on Windows via VirtualHere.
Problem:
- VirtualHere successfully mounted the USB devices
- But Windows sometimes failed to initialize the smart card/token drivers
- Tokens were not detected on the first mount attempt
- Replug/remount sometimes helped, sometimes not
After debugging, I found that Windows was leaving broken PnP/SmartCard devices in a bad state. Especially devices like: