« Blue screen troubleshooting tips for beginners, continuedPrivate Disk vs. hardware based encryption »

How to reinstall the Smart Card service on Windows XP

How to reinstall the Smart Card service on Windows XP

If you're looking for a way to re-install the smart card service on Windows XP, this story is your new best friend!

Summary

  1. Prepare a Windows XP installation disc
  2. Read the included readme.txt
  3. Examine install.bat in order to see what it does
  4. Run the BAT file

Steps 3 and 4 are optional, but if you're someone who tinkers with the service, I'm sure you want to know what's in there.

Explanations

  • First of all you should make sure the service is completely removed. sc delete scardsvr is the standard and official way to remove the service (it is interesting that Microsoft provides a way to remove a service, but there is no known mechanism to re-install one).
  • Copy scardsvr.inf to %windir%\inf
  • Run sysocmgr.exe /i:caller.inf, this will invoke a wizard that will use the data inside scardsvr.inf to perform various actions (such as modifying registry keys, and copying files)

Smart Card service installation wizard

  • Uncheck Smart card service and press Next to remove the files and registry entries
  • Run the command again, the same window will be shown, check Smart card service and press Next (you will be asked to insert the Windows XP installation CD)
  • Perform a system restart, after checking the service manager (by running services.msc) and making sure the Smart card service startup is set to Automatic

If you examine scardsvr.inf you will see that it contains references to a list of files and registry keys. These actions could be performed manually, the effect would be the same; but using an .inf file is much easier.

Share/Save/Bookmark

33 comments

Comment from: K [Visitor] Email
UFFFFFFFFFFFFF
great it works
big thx
2008-01-09 @ 14:51
Comment from: Bryan [Visitor]
I was sent here via a post here:

http://railean.net/index.php/2006/12/19/restoring_the_smart_card_service_in_wind_2000

as an alternative to purchasing XPLite to re-install the SmartCard Service. Some reports indicate that SmartCard Services are required for the newer versions of iTunes to start without automatically going to a background process. I am going to give this a shot later on today, and see how it goes, and post with my results.

:-)

~Bryan
2008-01-26 @ 17:58
Comment from: Alex [Member] · http://www.dekart.com/
Hmm.. I'm not sure if it is really so; I mean, there is no intuitive connection between iTunes (an audio player) and the smart card service (which is used for smart cards, that are usually used for storing encryption keys, or authentication data).

Either way, the mechanism described here can be used to remove this service, as well as re-install it, so any changes you will apply to the system will be reversible.

Let me know how things went, I'm sure your feedback will be useful to other readers.
2008-01-27 @ 22:40
Comment from: Joey [Visitor] Email · http://joeyahn.tistory.com
Alex, I had a problem with starting up my iTunes 7.6 after installtion. But with Smart Card Service reinstalled, my iTunes is finally working. Much Thanks to you! I made a web document using your instruction and download for other iTunes users who maybe experiencing similar problem. I hope its okay with you. But for any reason if you're not happy with me using your article as reference, please let me know. I will delete it. Thanks again for sharing valuable information. :-)
2008-02-12 @ 17:25
Comment from: Joey [Visitor] Email · http://joeyahn.tistory.com
Oh, by the way, my article about solutions to iTunes startup problem is at http://joeyahn.tistory.com/entry/Solution-to-Itunes-76-intallation-running-error-when-itunes76-doesnt-start-after-installation

2008-02-12 @ 17:28
Comment from: Alex [Member] · http://www.dekart.com/
Joey, I have absolutely no problem with this guide being used as a reference on your site.
Knowledge should be free, and I am glad that this information helped you.

Good luck!
2008-02-12 @ 17:34
Comment from: mongoose [Visitor] Email
This is amazing! I hope everyone else who are struggling with itunes find this!!! i literally spent hours trying to find information like this!
2008-02-18 @ 13:11
Comment from: Tiya [Visitor]
hi, it dont understand when installing e.g. winXP what are the action/task to be performed both before and after installation when planning? please mail me if u have the answer need your help! gamesprincess@hotmail.co.uk

Tiya
2008-04-24 @ 09:18
Comment from: Joshua [Visitor] · http://mcp-it-prof.spaces.live.com/
Hi, I've used your method reinstalling my Smart Card service successfully. Thank you. I also reference this article in my blog (in Traditional Chinese language). If it's not appropriate, please let me know. Thanks again.

Response: no problem, it is great that the info is now available in a different language. Feel free to translate other articles you find interesting.
2008-05-14 @ 11:42
Comment from: Gin [Visitor]
You are a god among men. Or at least my personal saviour. iTunes was causing me to do much hair-pulling. Thank you so very much!
2008-05-19 @ 14:33
Comment from: itunes sucks [Visitor]
If you insist on using iTunes, you don't necessarily need to install Smart Card Services.

All you need are the following files in C:\Windows\System32:
sccbase.dll
sccsccp.dll
slbcsp.dll
slbiop.dll

wmasf.dll
wmidx.dll

Either get them from another computer or extract them from the WinXP install CD.
2008-06-07 @ 13:50
Comment from: Lear Chen [Visitor] · http://www.wisechen.com.tw/
I make a mistake to install old Smart Card Base components in Windows Vista system.

Do you know how to reinstall/repair the Smart Card Service On Windows Vista.

TKS in advance.
2008-06-09 @ 23:40
Comment from: Harry [Visitor]
alex
i have done all that u hav said but itunes still is not working my smartcard helper does not allow me to start it comes up with error 1068 the dependancy of group or service failed to start what do i do
2008-06-23 @ 18:31
Comment from: Wayne [Visitor]
This has saved me considerable headache. I had slipstreamed my XP Pro install with nLite and removed the Smart Card stuff(who needed it - not me). Reinstalled the OS and... well itunes wouldn't start. Using this to reinstall the smartcard service and bam - itunes now works. Who would have figured that itunes needs this service

Thank you
2008-07-22 @ 12:33
Comment from: Wayne [Visitor]
thank you
This has saved me considerable headache. I had slipstreamed my XP Pro install with nLite and removed the Smart Card stuff(who needed it - not me). Reinstalled the OS and... well itunes wouldn't start. Using this to reinstall the smartcard service and bam - itunes now works. Who would have figured that itunes needs this service

Thank you
2008-07-22 @ 12:34
Comment from: don [Visitor]
I just got a v1 iPhone from my friend, who upgraded. I want to just use it as an iPod/mobile browser; I could care less about the phone.

In any case, I too was a victim of iTunes' stupid, stupid reliance on this unrelated service. This fix worked where others did not. Apple, you should be ashamed that the users had to figure this for you.
2008-07-31 @ 08:32
Comment from: adrian [Visitor] Email
i installed the smart card and it seemed ok suddenly, the laptop doesnt recognize or even detect the modem anymore
2008-08-01 @ 11:06
Comment from: Alex Railean [Visitor] · http://www.dekart.com/
Adrian, there is no obvious connection between the modem and this service, so my guess is that the problem is elsewhere.

What kind of modem do you have (internal, external)? Are you sure it has not been disabled in the Device Manager?
2008-08-01 @ 11:24
Comment from: Petar Smiljanic [Visitor]
This is not quite correct. I'm allergic to helpers that don't give it all.
Bellow is correct information for all of you that don't like to lose time in front of PC!

How to reinstall the Smart Card service on Windows XP
If you're looking for a way to re-install the smart card service on Windows XP, this story is your new best friend!
Summary
1. Prepare a Windows XP installation disc
2. Download WinXP-scardsvr-install.zip and unzip it to folder:
C:\Documents and Settings\Administrator\Desktop\”reinstall smart card service”
Read the included readme.txt

3. Run the BAT file
Steps 3 and 4 are optional, but if you're someone who tinkers with the service, I'm sure you want to know what's in there.
Explanations
• First of all you should make sure the service is completely removed.
START/run/sc delete scardsvr is the standard and official way to remove the service (it is interesting that Microsoft provides a way to remove a service, but there is no known mechanism to re-install one).
• Copy scardsvr.inf to C:windows//inf
• Copt caller.inf to C:/windows/inf
• Run C:\WINDOWS\system32/sysocmgr.exe /i:caller.inf, this will invoke a wizard that will use the data inside scardsvr.inf to perform various actions (such as modifying registry keys, and copying files).

• Uncheck Smart card service and press Next to remove the files and registry entries
• Run the command again, the same window will be shown, check Smart card service and press Next (you will be asked to insert the Windows XP installation CD)
• Perform a system restart, after checking the service manager (by running services.msc) and making sure the Smart card service startup is set to Automatic
If you examine scardsvr.inf you will see that it contains references to a list of files and registry keys. These actions could be performed manually, the effect would be the same; but using an .inf file is much easier.

2008-11-25 @ 19:22
Comment from: SnapperQH [Visitor]
I can confirm.
iTunes don't appear withou SmartCard Service.
In my case was removed by means of XPLite.
A lot of thanks for your workaround
2008-12-01 @ 20:46
Comment from: Kent [Visitor] Email
Hi - Thank you SO very much for this. You are truly a gift. I had used Nlite to slipstream XP SP3 and thought I did not need Secure Cards - but our HP Wireless printer would not install without the services. You saved me countless hours in having to recreate a new CD and reinstall of my OS and software. Thank you, thank you.
2008-12-13 @ 21:02
Comment from: zk [Visitor]
Great work :) !
2008-12-23 @ 04:10
Comment from: Jack [Visitor]
Hey I've tried these steps for my itunes 8 which i need for the ipod touch but when i try to load or install the scardsrv it gives me the same "" Setup was unable to load the master information file." I've tried using various xp cds and moved the i386 into my windows setup and it still does not load and the extra dll files scard doesn't launch...Help please!!
2008-12-25 @ 01:51
Comment from: cpgamer [Visitor] Email
My situation is exactly the same as Jacks..the unable to load form a master information file..so not sure where to get that file...I even tried to use an older version of itunes which was reported to work 7.4 vrs..it also did not work. Any help would be appreciated
2008-12-29 @ 14:05
Comment from: cpgamer [Visitor] Email
also when I attempt to run the sysocmgr.exe /i:caller.in in the cmd line it gives me the no master file or something of that nature.
2008-12-29 @ 16:05
Comment from: Stephen [Visitor]


I really appreciate this solution. It solved a problem I was having installing CIP and SafeNet token utilities. I would occasionaly get a "Smart Card Service is Not Installed" error when installing these applications.

Also I would encounter a "Token Service is Not Started" error from time to time. The Token Service is dependent on the Smart Card service.

In my case though, I absolutely needed a scripted solution and this pointed me to exactly where I needed to go...

I hope someone finds this useful.

Put all the required files in a source directory and modify this script with the source directory's name. Here is a list of the batch file. I've left the remarks for clarity. I've left out the error-trapping routines.

People who are not familiar with the FOR /F statement can replace this line with individual REGSVR32 statements for each file that needs to be registered.

These .dlls have to be registered.
scardssp.dll
sccbase
scredir.dll
slbcsp.dll
slbiop.dll

The reg values for the description near the end don't seem to have an effect on XP SP 2 or 3. I still have to take a look at this. This is purely a cosmetic issue.
I do not use the PAUSE at the end of the file. I include it in case some forget to when they are testing.

As the guy said, all of this can be deduced from the .inf.
Hey guy, I owe you three beers!!
Thanks so much.

Create a batch file with the following commands. You will have a scripted install.

Sorry... it just occurred to me that I've forgotten to include the uninstall script (also defined in the inf) and I'm too drunk to put it in now (I swear I've never said that to a woman ;).

I'll have to do this at a later date.

A Very Happy New Year to Everyone!!

_______________________________

:: Created 2008-12-17 by SDW
:: To script the installation of the "Smart Card" and "Smart Card Helper" services.
::


@ECHO OFF
TITLE Smart Card Services Installation

:: Copy the .dlls and .exe onto the machine.
@ECHO Copying files...
COPY /y "[YOUR SOURCE]\*.*" C:\Windows\system32 > NUL

@ECHO Registering dlls...
For /f %%i in (filelist.txt) DO regsvr32 /s %%i > NUL

:: Create the SCard Driver and Server services
@ECHO Creating the SCard Driver and Server services...
SC CREATE ScardDrv binPath= C:\Windows\system32\scardsvr.exe type= share start= demand error= normal obj= "NT Authority\LocalService" tag= no depend= "+Smart Card Reader" DisplayName= "Smart Card Helper"
SC CREATE ScardSvr binPath= C:\Windows\system32\scardsvr.exe type= share start= demand error= normal obj= "NT Authority\LocalService" tag= no depend= PlugPlay DisplayName= "Smart Card"

:: Add description for the services to the registry.
@ECHO Modifying the registry...
REG ADD HKLM\System\CurrentControlSet\Services\SCardDrv /v Description /t REG_SZ /d "Enables support for legacy non-plug and play smart-card readers used by this computer. If this service is stopped, this computer will not support legacy reader. If this service is disabled, any services that explicitly depend on it will fail to start." /f
REG ADD HKLM\System\CurrentControlSet\Services\SCardDrv /v Description /t REG_SZ /d "Manages access to smart cards read by this computer. If this service is stopped, this computer will be unable to read smart cards. If this service is disabled, any services that explicitly depend on it will fail to start." /f

:: Add eventlog settings
REG ADD HKLM\System\CurrentControlSet\Services\Eventlog\System\SCardSvr /v EventMessageFile /t REG_SZ /d "%SystemRoot\System32\SCardSvr.exe" /f > NUL
REG ADD HKLM\System\CurrentControlSet\Services\Eventlog\System\SCardSvr /v TypesSupported /t REG_DWORD /d 7 /f > NUL

@ECHO Done
Pause




NET START "smart card"
2009-01-01 @ 08:58
Comment from: Sherman [Visitor]
Very helpful. Thanks a lot!
2009-01-01 @ 18:11
Comment from: Anonymous [Visitor]
Umm. Why would anyone think that installing security software downloaded from an unknown source on the internet is a good idea?
2009-07-01 @ 16:33
Comment from: Alex [Visitor] · http://www.dekart.com/
That's an excellent point! If you download the ZIP and examine it, you will see that it contains an INF file with instructions for "where to copy the file from" and "what to do with it".

Whenever you will need the actual file, you will be asked to enter the original Windows CD, and the files will be copied from there. So in practice it means that you are not using any software from an untrusted party (unless of course you don't trust Microsoft :-)


Yes, one could do some nasty stuff inside a BAT or an INF file - but you can open them and view them yourself and make sure that they are not doing any harm.
2009-07-01 @ 17:40
Comment from: meckleychina [Visitor] · http://www.flickr.com/photos/meckleychina/
Awesome! Fixed my problems! Thanks!
2009-12-08 @ 22:16
Comment from: Minos [Visitor] · http://www.sunrisechina.biz
Hope it workes on Windows7.
2010-01-20 @ 11:31
Comment from: AJ Jensen [Visitor] Email
Petar Smiljanic - You are truly appreciated. I have spent 2 days now totaling 7hrs looking for a way to reinstall the smartcard service(but actually for a smart card, needed for my military duties while at home or away on temporary duties in other locations. Thanks to you I can now access my work while not in the office. I was ready to give up and and realize it was beyond my computer capabilities.

Thanks again
TSgt Jensen
2010-02-13 @ 01:34
Comment from: Peter Neil [Visitor]
You are my saviour! I have been pulling my hair out trying to fix a Smart Card problem on a 2nd hand kiosk. I new the Smart Card resource manager was broken but had no idea how to fix it. You readme and batch file did the trick. Thank You!!!

Peter Neil
2010-05-09 @ 06:14

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

You should get it for less

PC/SC compliant smart card reader, compatible with SIM and USIM cards (2G, 3G), as well as CDMA and Nextel cards PC/SC smart card reader + SIM Manager 2
List price: $39
Price: $35.10
You save: 10%

Shipping worldwide

Buy SIM card reader with a discount

Search

Reading material

Subscribe

powered by b2evolution free blog software