locked
windows 10 remote desktop lsass.exe SCARD_E_NO_READERS_AVAILABLE RRS feed

  • Question

  • I have 2 machines with Windows 10. I am doing remote desktop from machine **A** to machine **B** with smart card logon. Smart card reader is inserted into machine **A**. On the machine **B** this happens:

    1. `logonui.exe` application is calling my CSP (process **P1**)

            CPAquireContext
             phProv:       0x98f344
             pszContainer: \\.\Gemplus USB Smart Card Reader 0\
             dwFlags:      CRYPT_SILENT  (0x40)

    2. My CSP creates a new thread **T1** in the process **P1**.
    3. In the thread **T1**:
      * `SCardEstablishContext` returns `SCARD_S_SUCCESS`
      * `SCardListReaders` returns `SCARD_S_SUCCESS`
    4. `lsass.exe` application is calling my CSP (process **P2**)

            CPAquireContext
             phProv:       0xfee3e8
             pszContainer: \\.\Gemplus USB Smart Card Reader 0\\\.\Gemplus USB Smart Card Reader 0\
             dwFlags:      CRYPT_MACHINE_KEYSET CRYPT_SILENT  (0x60)

    5. My CSP creates a new thread **T2** in the process **P2**.
    6. In the thread **T2**:
      * `SCardEstablishContext` returns `SCARD_S_SUCCESS`
      * `SCardListReaders` returns `SCARD_E_NO_READERS_AVAILABLE`

    Because of this remote desktop smart card logon fails.

    This does not happen when I do smart card logon on a single Windows 10 machine, without remote desktop. I always get `SCARD_S_SUCCESS` when calling `SCardListReaders`.

    Any ideas?
    Thursday, March 24, 2016 1:28 PM

All replies

  • Probably computer B does not have any smartcard readers.

    When you establish the remote desktop session, click on the tab "Local resources",

    and then in the section called "Local devices and resources", click the "more" button.

    Perhaps you did not check [ ] Smart cards.

    Good luck.


    • Edited by Andrew7Webb Thursday, March 24, 2016 4:48 PM images missing
    Thursday, March 24, 2016 4:46 PM