Smart Card Reader in Remote Desktop and Virtual Machines

Can you use an ACS smart card reader over Remote Desktop or in a virtual machine? Usually yes, but the reader stays where it is plugged in and is passed through to the remote session. With Remote Desktop, plug the reader into the PC you sit at, tick Smart cards under Local Resources in the Remote Desktop client (the RDP file setting is redirectsmartcards:i:1), and make sure the remote computer's Group Policy Do not allow smart card device redirection is not enabled. Programs in the session then reach the reader through Windows smart card redirection; check it with certutil -scinfo inside the session. Hyper-V has no built-in USB passthrough, so use Enhanced Session Mode, which is RDP underneath. VMware and VirtualBox can pass the USB reader into the guest, which then needs the driver. WSL 2 can attach it with usbipd-win.

This page is for integrators and support staff whose card software runs on a terminal server, a virtual desktop or a VM. It goes deeper than the short Remote Desktop note in our PC/SC reader status guide, and links to it for the basics. It applies to ACS USB readers such as the ACR1252U, ACR1552U, ACR122U and ACR39U. BSD Infotech is an independent ACS supplier and integrator, not the manufacturer.

Not yet tested by BSD. The settings and behaviour on this page are as Microsoft documents them, checked on 1 Dec 2026. BSD has not yet tested an ACS reader through Remote Desktop, Hyper-V, another hypervisor or WSL. Where Microsoft does not document something, such as reader escape commands over Remote Desktop, the page says "not documented, test it". The planned checks are under what BSD still has to test.

There are two basic ways to get a reader into a remote session or a VM. Microsoft calls them high-level redirection (the smart card subsystem is forwarded; the reader and its driver stay on the local PC) and opaque low-level redirection (the raw USB device is forwarded; the driver must be installed on the other side). Microsoft lists the smart card reader as a high-level redirection device and recommends high-level redirection wherever possible.

SetupReader plugged intoACS driver needed onReader still usable locally?BSD status
Remote Desktop, smart card redirection (the normal choice)The client PC you sit atThe client PCYes: Microsoft says a high-level redirected device can be used on the local device and in the remote sessionNot yet tested
Remote Desktop, USB device redirection ("Other supported RemoteFX USB devices")The client PCThe remote sessionNo: the device is used by one remote session onlyNot yet tested
Hyper-V, Enhanced Session ModeThe Hyper-V hostThe host (smart card option) or the VM (USB device option)As for the matching RDP methodNot yet tested
VMware or VirtualBox USB passthroughThe hostThe guestNo, while the guest owns itNot yet tested
WSL 2 with usbipd-winThe Windows PCLinux inside WSL (pcscd and a CCID driver)No: Microsoft says Windows cannot use it while it is attached to WSLNot yet tested
Citrix or VMware Horizon virtual desktopsThe user's deviceAs the vendor documentsAs the vendor documentsNot tested; follow the vendor's documentation

A kiosk, counter or POS PC that runs the card software locally needs none of this. It matters only when the card application runs somewhere other than the PC with the reader.

Three places decide whether the reader reaches the session. Microsoft states that the most restrictive setting wins: if one place blocks redirection, it is blocked.

1. The client: Remote Desktop Connection

  1. Plug the ACS reader into the PC you will connect from, and check it works there first, for example in ACS QuickView (certutil -scinfo also lists it). If it does not work locally, it will not work remotely: start with ACS reader not detected.
  2. Open Remote Desktop Connection (mstsc.exe) and select Show Options.
  3. Open the Local Resources tab. Under Local devices and resources, select More.
  4. Tick Smart cards, select OK, and connect. If you use a saved .rdp file, save it again from the General tab so the setting is kept.

Expected result: the reader is available to programs inside the session (check it as in what the session sees).

2. The RDP file property

In an .rdp file, or in a broker's RDP properties, the setting is redirectsmartcards:i:1 (smart cards on the local device are available in the remote session) or redirectsmartcards:i:0 (not available). Microsoft lists 1 as the default. For Azure Virtual Desktop, the same property is the host pool setting Smart card redirection under RDP Properties, Device redirection, again with "available in remote session" as the default.

3. The remote computer: Group Policy

On the computer that provides the session (a terminal server, session host or the remote PC), the policy is Do not allow smart card device redirection, under Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, Device and Resource Redirection. Enabled blocks the reader; Disabled or Not configured allows it. Microsoft says to restart the computers providing the session after the policy applies. The same setting is available in Microsoft Intune's settings catalog under the same path. This is an administrator's decision: some organisations block redirection on purpose, so ask your IT team rather than changing it yourself.

Microsoft describes smart card redirection as forwarding the smart card calls made in the session back to the Smart Cards for Windows service on the client. Calls such as SCardEstablishContext are remapped automatically to the client side, and the decision is made for each smart card context, based on the session of the thread that calls SCardEstablishContext. In practice:

  • Programs in the session see the client's readers through the normal PC/SC API. Card programs need no special code for this; the reader appears in SCardListReaders like a local one.
  • The ACS driver and the Smart Card service run on the client. Driver problems are fixed on the client PC, not on the server.
  • Check it with certutil. Microsoft's own test is to run certutil -scinfo inside the remote session: if redirection works, the output starts with the Microsoft Smart Card Resource Manager running and lists the readers. How to read that output: certutil -scinfo explained.
  • ERROR_BROKEN_PIPE (0x00000109) from SCardEstablishContext means a smart card operation was attempted in a remote session on a system that does not support smart card redirection (Microsoft's smart card return values).

Not documented, test it. Microsoft's pages do not say whether a reader plugged into the remote computer is also visible inside a redirected session, or whether the reader name inside the session is exactly the client's name. Do not hard-code either: let users choose the reader, and test your own setup with certutil -scinfo. These are hardware checks 2 and 3 below.

ACS readers have two kinds of reader commands. Pseudo-APDUs with class FF (for example Get UID, FF CA 00 00 00) are sent with SCardTransmit like card commands, and the reader answers them itself. Escape commands (for example the ACR1252U and ACR1552U firmware version command) are sent to the reader with SCardControl; our firmware version guide shows both routes.

What Microsoft documents. The Remote Desktop smart card redirection protocol, MS-RDPESC, includes a Control_Call message, which Microsoft describes as the way to talk to the smart card reader itself rather than to the card. It carries the control code and the input buffer to the client, and the specification says the protocol does not restrict or define any control code values: they are specific to the device. So an SCardControl call made in the session is passed to the client side, where the ACS driver has to accept it. Pseudo-APDUs travel inside ordinary SCardTransmit calls, so they reach the reader the same way any card command does.

Not documented, test it. Neither Microsoft nor ACS documents that a specific ACS escape command works over Remote Desktop. Escape commands depend on the driver on the client: ACS documents a registry value, EscapeCommandEnable, for the ACR122U's escape route on Windows (see the firmware guide), and the built-in Microsoft CCID driver behaves differently from the ACS driver (built-in vs ACS driver). Connecting in direct mode with no card on the reader, which escape commands often use, is not described for redirected sessions either. Before you rely on LED, buzzer, polling or firmware commands in a remote session, send one harmless escape command (Get Firmware Version) from inside the session and compare the reply with the same command run locally on the client.

Keyboard emulation. An ACR1552U set to keyboard mode is a keyboard to the client PC, not a PC/SC reader, so smart card redirection does not apply: the typed UID goes wherever the client sends keystrokes, which is the Remote Desktop window when it has focus. This follows from how keyboard mode works; BSD has not tested it over Remote Desktop. See ACS reader keyboard emulation.

Remote Desktop can also forward the reader as a raw USB device (Microsoft's opaque low-level redirection, shown in the client as Other supported RemoteFX USB devices). Then the reader is installed inside the remote session as if it were plugged in there. Microsoft documents what that requires and costs:

  • On the client, the Group Policy Allow RDP redirection of other supported RemoteFX USB devices from this computer (Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Connection Client, RemoteFX USB Device Redirection) must be enabled, followed by a restart. By default no user can redirect such devices.
  • On the remote side, Do not allow supported Plug and Play device redirection must not be enabled; Microsoft gives "USB redirection isn't allowed" as the Windows default for the remote side.
  • The driver for the device must be installed in the remote session, so the ACS driver goes on the server.
  • The device cannot be used on the local PC while it is redirected, and only one remote session can use it at a time. Microsoft designs this method for LAN connections (under 20 ms latency) and does not guarantee performance or reliability.

For a PC/SC reader, Microsoft's advice to prefer high-level redirection points to smart card redirection. USB redirection is a fallback to test only if a specific program needs the reader as a local device inside the session.

Citrix and VMware Horizon virtual desktops have their own smart card redirection, configured in their own policies and clients. BSD has not tested ACS readers with either. Follow the vendor's smart card redirection documentation for your product version, and then test the reader inside the virtual desktop the same way as for Remote Desktop: list the readers, read a card's UID, and if you use them, send one escape command. Give your desktop administrator the reader model and the symptom you see.

Hyper-V

Microsoft states that Hyper-V does not include built-in USB passthrough, so a VM cannot directly access a USB device connected to the host. Its documented route is Enhanced Session Mode, in which Virtual Machine Connection (VMConnect) connects to the VM using RDP, so all of the Remote Desktop rules above apply:

  1. In Hyper-V Manager, open Hyper-V Settings: under Server, Enhanced Session Mode Policy must be allowed; under User, Enhanced Session Mode must be on.
  2. Inside the VM, turn on Enable Remote Desktop. Microsoft notes that Enhanced Session Mode is only available for Windows VMs.
  3. Connect with VMConnect, select Show Options, Local Resources, then More under Local devices and resources, and tick Smart cards (Microsoft lists smart cards among the security devices that can be shared).
  4. In the VM, run certutil -scinfo to check that the host's reader is listed.

The reader stays on the host and the ACS driver is installed on the host. Microsoft also describes sharing a USB device itself through the Other supported Plug and Play (PnP) devices list in the same dialog; then the driver would be needed inside the VM. For a PC/SC reader, start with the Smart cards option.

VMware and VirtualBox

Desktop hypervisors such as VMware Workstation and VirtualBox can generally pass a USB device from the host into a guest. The guest then owns the reader: install the ACS driver for your model (or rely on the guest's built-in CCID driver, with the limits described in built-in vs ACS driver), and expect the host to lose the reader while the guest uses it. How to attach a USB device, and whether a USB filter keeps it attached across restarts, is in each vendor's documentation. BSD has not tested ACS readers with either product. A reader that keeps dropping out of a guest is worth testing on the host first, because the USB causes (hubs, power saving, front ports) still apply underneath.

Microsoft documents connecting USB devices to a Linux distribution in WSL 2 with the open-source usbipd-win project, and names "accessing a smartcard reader" as one of the scenarios. As Microsoft describes it (Windows 11, or Windows 10 with the Store version of WSL; WSL 2 distributions only; x64 or ARM64):

  1. Install usbipd-win from its release page or with winget, as Microsoft's page describes. Keep a WSL command line open so the WSL 2 VM stays running.
  2. In an administrator PowerShell, run usbipd list and note the bus ID of the ACS reader.
  3. Share it with usbipd bind --busid <busid> (administrator), then attach it with usbipd attach --wsl --busid <busid>.
  4. In Linux, run lsusb to see the reader. Microsoft notes that udev rules may be needed for non-root access.
  5. When done, run usbipd detach --busid <busid>, or unplug the reader.

While the reader is attached to WSL, Windows cannot use it, so Windows card tools will report no reader. Inside Linux it is an ordinary USB reader: install pcscd and a CCID driver as in our ACS readers on Linux guide, and test with its PC/SC checks. Not yet tested by BSD with an ACS reader.

General PC/SC practice, not tested by BSD in remote sessions:

  • Do not hard-code the reader name. List readers with SCardListReaders and pick by a part of the name, as in detecting an ACS reader in C#.
  • Treat "no readers" as a normal state. SCARD_E_NO_READERS_AVAILABLE (0x8010002E) in a session usually means redirection is off or the reader is on the wrong PC. Show a clear message that says so, and wait for a reader.
  • Expect the reader to vanish when the session is disconnected and to return when the user reconnects. Rebuild the PC/SC context and list readers again rather than reusing old handles (reader watcher pattern).
  • Log ERROR_BROKEN_PIPE separately, with a hint that the session has no smart card redirection.
  • Keep escape commands optional: if SCardControl fails in a session, carry on with card functions and report the reader feature as unavailable.

Error codes and what to do for each group are in the PC/SC error code reference.

What you seeLikely causeWhat to do
No reader in the remote session; 0x8010002ESmart cards not ticked in the client, redirectsmartcards:i:0, or the reader is plugged into the serverPlug the reader into the client, tick Smart cards (client steps), reconnect
Smart cards ticked, still no readerPolicy "Do not allow smart card device redirection" enabled on the remote computer, or a broker property set to 0Ask the administrator to check the policy and broker settings (policy); the most restrictive setting wins
ERROR_BROKEN_PIPE (0x00000109) from SCardEstablishContextThe remote system does not support smart card redirection for this sessionUse a system and client that support it; check with certutil -scinfo
Reader not working on the client eitherA local problemFix it locally first: reader not detected
Cards read, but LED, buzzer or firmware commands fail only in the sessionEscape commands not accepted through redirection on this setupNot documented: test one escape command locally and in the session (escape commands)
Reader works in the session but not on the client while connectedUSB device redirection is in use instead of smart card redirectionUntick it under Other supported RemoteFX USB devices; use Smart cards (USB redirection)
Communication errors only in the remote sessionNetwork delay with USB redirection, or the session was disconnectedPrefer smart card redirection; see communication errors
Hyper-V VM sees no readerBasic session, Enhanced Session Mode off, or Smart cards not tickedTurn on Enhanced Session Mode and Remote Desktop in the VM, tick Smart cards (Hyper-V)
Linux VM on Hyper-V sees no readerMicrosoft: Enhanced Session Mode is for Windows VMs onlyUse a Windows VM, or run the Linux software elsewhere
VMware or VirtualBox guest: reader missing or unknown deviceUSB device not attached to the guest, or no driver in the guestAttach it per the vendor's guide; install the ACS driver in the guest
WSL: lsusb shows the reader, PC/SC sees nonepcscd or the CCID driver missing, or permissionsFollow the Linux troubleshooting; check udev rules
Windows tools lost the reader after using WSLStill attached to WSLusbipd detach --busid <busid> or replug
ACR1552U types the UID in the wrong placeKeyboard mode: keystrokes go to the window with focusClick into the Remote Desktop window first, or switch the reader to PC/SC mode

The tracker asks BSD to test Remote Desktop redirection. These checks are planned, and this page will be updated with the results:

  1. ACR1252U on a Windows 11 client, Remote Desktop into a Windows 10 or 11 PC with Smart cards ticked: certutil -scinfo in the session, then Get UID on a MIFARE Classic 1K card in the ACS Script Tool inside the session.
  2. The same with the reader plugged into the remote PC instead: does the session list it?
  3. The reader name shown in the session compared with the name on the client.
  4. Get Firmware Version (an escape command) in the session compared with locally, with the ACS driver on the client.
  5. Disconnecting and reconnecting the session while a card program runs.
  6. ACR122U and ACR1552U repeats of check 1; a Hyper-V Windows VM with Enhanced Session Mode; WSL 2 with usbipd-win.

Microsoft pages checked on 1 Dec 2026. Explanations are in BSD's own words. ACS facts are as cited on BSD's firmware and driver guides.

BSD Infotech is an independent ACS supplier and integrator, not the manufacturer. ACS, the ACS logo and ACS product names belong to Advanced Card Systems Ltd. Windows, Hyper-V and Remote Desktop are trademarks of Microsoft Corporation. Citrix, VMware, VMware Horizon and VirtualBox are trademarks of their respective owners.

Reader not reaching your remote session?

Send us the reader model, the client and server Windows versions, how you connect and what certutil -scinfo shows in the session. We help set up ACS readers with your software, locally or remotely.