Windows 2008 server smart card security module problem
- by chris13work
Hi, I've got a smart card reader and a server application using it as a security module. If I run it under DOS prompt, everything is fine. The server is running and clients can connect to it. I tried to install the server as window service and start it. The server starts but always gives back authentication error because it cannot call the smart card to do encryption.
Then I tried to start it with task scheduler and set the trigger factor as "on startup". The server starts also but still cannot access the smart card reader.
Then I tried remote desktop to the machine and run the server application under DOS prompt. Same error is returned.
The situation is that the smart card reader only works under active console desktop environment. In the server application, WINSCARD API is used to access the smart card reader. Any suggestion so that we can access the smart card reader in running services?
OS: Windows Server 2008
Smart Card Driver: Windows USB smart card Reader
Smart Card API: WINSCARD