Tags: seven

How to install the smart card service on Windows 7 and Vista

The smart card service is a standard Windows component and it should be present on every system. However, in certain circumstances that is not the case - as a result, programs that depend on this service will fail.

I've previously discussed how to install the smart card service on Windows XP, and I've covered this procedure on Windows 2000. However, I had no solution for Windows Vista and Windows 7.

Fortunately, that is not the case anymore, a solution that works on 32-bit and 64-bit platforms was found, here is how it works.

Sometimes the smart card service is not in the list of services at all, but if you look for the files related to this service (ex: SCardSSP.dll) - they are present in the file system. So the problem is not in the fact that the modules are not there; they are - but they are not loaded.

Having had the opportunity to tinker with a problematic system, I was able to determine that the service is absent because some entries in the registry are different from their "normal system" counterparts.

In other words, the difference is only in the contents of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SCardSvr.

If the service is not listed, open regedit and view that key, it will most likely be absent. If it is present - it means that some of its sub-entries are incorrect.

  1. Backup the key (right-click\Export) to a REG file
  2. Delete the key
  3. Download and import this REG file: http://dl.dropbox.com/u/3258602/scard-vistax86x64.reg
  4. Reboot the system

If the planets are aligned properly - the service will be back, and it will be running after the restart. Give your software a try, everything should work. The registry file above works with Vista x86 and Vista x64.

For Windows 7, use this one: http://dl.dropbox.com/u/3258602/scardsvr-win7x64.reg (it should work on both types of platforms).

For Windows Server 2008, use the same file as for Windows 7; I tested it on x64 - it works.

I hope you'll find this helpful and that you will save all the time I've lost. Feel free to share your experience or ask any questions.

If the sky falls down and Dropbox doesn't work, here is the contents of the files.

Full story »

Share/Save/Bookmark

Smart card driver for Windows 7

If you have a SIM card reader for SIM recovery or contacts synchronization, you may notice some weird behaviour on Windows 7.

Every time you plug in the reader, Windows begins to look for a driver:

Windows 7 is looking for a driver when a smart card is inserted

This is strange, because you have already installed the driver once; and what is stranger is that despite the fact that Windows fails to find a driver - the SIM card manager still works properly!

Screenshot of SIM Manager, editing PLMN and FPLMN on a SIM card

The explanation is very simple: Windows doesn't try to install the driver for the smart card reader, instead it attempts to install the driver for the smart card.

Take a look at your device manager, and pay attention to the names of the sections. Notice that the smart card readers are OK (highlighted with green), while the smart cards themselves are marked as "unknown" (highlighted with red). [please excuse the mess in my system, there are many items there because my computer is a testbed for all my experiments]

Device manager with smart cards and smart card readers

So, what is all this about? First of all, it is not a bug, it is a feature of Windows 7. It attempts to load a minidriver for the smart card that was plugged in (yes, a SIM card is a smart card, so Windows reacts to a newly inserted SIM card in exactly the same way).

This may be needed for some smart card applications, but it is not needed for SIM card management software (our smart card security tools don't need it either). You have two options here:

  • Ignore it and let it be. This is somewhat annoying.
  • Disable the feature, save some time and get rid of the annoyance.

How to disable smart card plug and play on Windows 7

  1. Start the group policy editor, by typing gpedit.msc in the Start menu
    Start the group policy editor in Windows 7, via the Start menu
  2. Go to Computer Configuration\Administrative Templates\Windows Components\Smart Card
  3. Find "Turn on Smart Card Plug and Play service" and double-click it
    Find the smart card plug and play feature in the group policy editor of Windows 7
  4. Disable it, click OK to apply the new setting
    Disable smartcard PnP

After you reboot the system, the pop-ups that show up every time you plug in a smart card will be gone.

Another way to disable smart card plug and play on Windows 7 is to run this from the command line, with admin rights:

Reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScPnP\ /v EnableScPnP /t REG_DWORD /d 0

 

Should I disable smart card plug and play?

  • If you don't disable it, the worst thing that can happen is that there is a delay before the inserted SIM card becomes readable. This happens because Windows locks access to the card, preventing the applications from reading it. After Windows fails to find a driver, the card becomes usable.
    This breaks some smart card programs, making them "believe" there is no card at all. SIM Manager was updated to take this feature of Windows 7 into account - so you can read your SIM card, its phonebook and SMS, etc
  • If you disable it, the delay is removed, thus the card can be read instantly. Note that if you use Windows built-in smart card authentication mechanism, it may not work. If "smart card authentication" rings no bells to you, it is safe to disable smart card plug and play.
    Note that this feature does not affect Dekart Logon - our own program for smart card authentication in Windows.

p.s. those of you who already have SIM Manager, stay tuned for the upcoming release, it's new feature is deleted SMS recovery for the iPhone.

Share/Save/Bookmark

Logon for Vista, TVMonday-beta

A fresh beta of Logon for Vista is now available for download: http://files.dekart.com/beta/Logon-2.23.1-TVMonday.msi

Biometric authentication in Windows Vista and Windows Seven

 

Changelog:

  • It works in Windows Seven
  • It works with biometric scanners integrated into most modern laptops, as well as other fingerprint scanners (no additional configuration is needed, as long as the fingerprint scanner driver is installed)
  • Key backup feature has been added
  • Various bug-fixes
Share/Save/Bookmark

Special offer for Lazybit readers

PC/SC compliant smart card reader, compatible with SIM and USIM cards (2G, 3G), as well as CDMA and Nextel cards
  • Edit SIM phonebook
  • Backup and restore SIM cards
  • Erase SIM cards
  • Lifetime warranty
  • many other features...

Follow Dekart on Twitter Lazybit subscription via RSS

Reading material

powered by b2evolution free blog software