« 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
PermalinkPermalinkCategories: Support highlights

45 comments

Comment from: K [Visitor] Email
KUFFFFFFFFFFFFF
great it works
big thx
2008-01-09 @ 14:51
Comment from: Bryan [Visitor]
BryanI 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]
AlexHmm.. 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
JoeyAlex, 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
JoeyOh, 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]
AlexJoey, 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
mongooseThis 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]
Tiyahi, 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]
JoshuaHi, 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]
GinYou 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]
itunes sucksIf 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]
Lear ChenI 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]
Harryalex
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]
Waynethank 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]
donI 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
adriani 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]
Alex RaileanAdrian, 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]
Petar SmiljanicThis 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]
SnapperQHI 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
KentHi - 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]
zkGreat work :) !
2008-12-23 @ 04:10
Comment from: Jack [Visitor]
JackHey 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
cpgamerMy 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
cpgameralso 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]
Stephen

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]
ShermanVery helpful. Thanks a lot!
2009-01-01 @ 18:11
Comment from: Anonymous [Visitor]
AnonymousUmm. 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]
AlexThat'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]
meckleychinaAwesome! Fixed my problems! Thanks!
2009-12-08 @ 22:16
Comment from: Minos [Visitor]
MinosHope it workes on Windows7.
2010-01-20 @ 11:31
Comment from: AJ Jensen [Visitor] Email
AJ JensenPetar 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]
Peter NeilYou 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
Comment from: pursandi.blogspot [Visitor]
pursandi.blogspotThank you, this is helpful
2010-10-15 @ 12:38
Comment from: Michael [Visitor]
MichaelThank U very much! Works perfectly.
2010-11-26 @ 00:50
Comment from: Ed Zahler [Visitor]
Ed ZahlerDoes this work with Windows XP SP3?

I saw in the scardsvc.inf it lists SP1 and SP2 under the SourceDiskFiles section
2011-01-24 @ 23:27
Comment from: Alex [Member]
AlexEd, it should work in XP SP3 as well.
2011-01-26 @ 12:52
Comment from: virgule [Visitor]
virgulehello, i have trouble with installation of a DT3500 smart card reader which wasn't detected correctly by windows xp sp3. Does the reinstallation of the service solve the problem ?
2011-02-15 @ 21:15
Comment from: Alex [Member]
AlexWhat do you mean it is not detected correctly? Windows does not see the device at all, or the driver is not accepted?
2011-02-24 @ 20:51
Comment from: Alex [Visitor]
AlexКак переустановить Smart Card service на Windows XP
Порядок действий

Приготовить инсталляционный диск Windows XP
Запустить BAT файл
Подробности его работы:

Запускается команда sc delete scardsvr, которая является стандартным и официальным способом удалить службу (интересно, что Microsoft предоставляет способ удаления службы, но нет механизма повторно установить ее).
P.S. Убедитесь, что служба удалена (запустите services.msc).
Производится копирование scardsvr.inf в каталог %windir%\inf
Выполняется команда sysocmgr.exe /i:caller.inf, запускающая мастер, который будет использовать данные из scardsvr.inf выполнять различные действия (изменения реестра, копирование файлов...).
Он запускается два раза. Первый раз для удаления, второй - для установки службы



При первом запуске снимите выбор с Smart card service и нажмите Next. При этом удаляются файлы и записи реестра.
При втором запуске появится то же самое окно. Теперь поставьте галку выбрав Smart card service и нажмите Next (вам будет предложено вставить установочный компакт-диск Windows XP).
Выполните перезагрузку системы, затем проверьте Service Manager (запустив services.msc) и убедитесь что запуск Smart card service установлен в Automatic
2011-07-11 @ 09:15
Comment from: Simon Richards [Visitor]
Simon RichardsGreat info you HAVE SAVED ME SO MUCH TIME AND HASSLE.
OUR HELPDESK HAD NO IDEA HOW TO REPAIR MY CARD READ SW
MANY MANY THANKS
2011-09-07 @ 04:34
Comment from: Walter [Visitor] Email
WalterOne question here regarding the smart card setting. When you set the start up type to "automatic", I notice the service status is "stopped". I set it up to started by clicking the start button. Is it correct?
2011-12-12 @ 04:27
Comment from: Alex [Member]
AlexWalter - this is normal behaviour.

"Startup type" indicates how the server starts when the system boots, it doesn't start it right away, there's a "Start" button for that.

If you set the startup type to "automatic" and reboot the system - the server will start automatically when Windows loads.
2011-12-22 @ 11:19
Comment from: Matt [Visitor] Email
MattHi Alex, I've tried to use your procedures above to fix my smart card issues but can't seem to get it to work. I'm decent with computers but not an IT person. Any chance you can get in contact with me to walk me through repair procedures?

V/R
2012-02-10 @ 19:45
Comment from: hotyenploty [Visitor]
hotyenplotyVery good. Needed this for an very old chipcard reader.
After hours of wasted time searching the internet and trying anything, this was the true solution.

Many thanks.
2012-02-15 @ 18:09
Comment from: BEV [Visitor]
BEVI was informed any I tune that is 7.5 or larger need this smartcard to work good luck ...looks like right here is the info to install an uninstall so shouldn't be problems either way
2013-07-21 @ 01:05

This post has 92756 feedbacks awaiting moderation...