Smart Card Reader in Remote Desktop and Virtual Machines
← Back to the ACS reader troubleshooting centre
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.
Which Method Does Your Setup Use?
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.
| Setup | Reader plugged into | ACS driver needed on | Reader still usable locally? | BSD status |
|---|---|---|---|---|
| Remote Desktop, smart card redirection (the normal choice) | The client PC you sit at | The client PC | Yes: Microsoft says a high-level redirected device can be used on the local device and in the remote session | Not yet tested |
| Remote Desktop, USB device redirection ("Other supported RemoteFX USB devices") | The client PC | The remote session | No: the device is used by one remote session only | Not yet tested |
| Hyper-V, Enhanced Session Mode | The Hyper-V host | The host (smart card option) or the VM (USB device option) | As for the matching RDP method | Not yet tested |
| VMware or VirtualBox USB passthrough | The host | The guest | No, while the guest owns it | Not yet tested |
| WSL 2 with usbipd-win | The Windows PC | Linux inside WSL (pcscd and a CCID driver) | No: Microsoft says Windows cannot use it while it is attached to WSL | Not yet tested |
| Citrix or VMware Horizon virtual desktops | The user's device | As the vendor documents | As the vendor documents | Not 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.
Set Up Smart Card Redirection in Remote Desktop
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
- 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.
- Open Remote Desktop Connection (
mstsc.exe) and select Show Options. - Open the Local Resources tab. Under Local devices and resources, select More.
- Tick Smart cards, select OK, and connect. If you use a saved
.rdpfile, 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.
What the Remote Session Sees
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
SCardListReaderslike 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 -scinfoinside 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) fromSCardEstablishContextmeans 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.
Escape Commands and SCardControl over Remote Desktop
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.
USB Device Redirection Instead of Smart Card Redirection
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
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.
Virtual Machines: Hyper-V, VMware, VirtualBox
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:
- 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.
- Inside the VM, turn on Enable Remote Desktop. Microsoft notes that Enhanced Session Mode is only available for Windows VMs.
- 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).
- In the VM, run
certutil -scinfoto 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.
WSL 2: Attaching the Reader with usbipd-win
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):
- 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.
- In an administrator PowerShell, run
usbipd listand note the bus ID of the ACS reader. - Share it with
usbipd bind --busid <busid>(administrator), then attach it withusbipd attach --wsl --busid <busid>. - In Linux, run
lsusbto see the reader. Microsoft notes that udev rules may be needed for non-root access. - 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.
For Developers: Writing Software That Survives Remote Sessions
General PC/SC practice, not tested by BSD in remote sessions:
- Do not hard-code the reader name. List readers with
SCardListReadersand 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
SCardControlfails 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.
Troubleshooting Table
| What you see | Likely cause | What to do |
|---|---|---|
No reader in the remote session; 0x8010002E | Smart cards not ticked in the client, redirectsmartcards:i:0, or the reader is plugged into the server | Plug the reader into the client, tick Smart cards (client steps), reconnect |
| Smart cards ticked, still no reader | Policy "Do not allow smart card device redirection" enabled on the remote computer, or a broker property set to 0 | Ask the administrator to check the policy and broker settings (policy); the most restrictive setting wins |
ERROR_BROKEN_PIPE (0x00000109) from SCardEstablishContext | The remote system does not support smart card redirection for this session | Use a system and client that support it; check with certutil -scinfo |
| Reader not working on the client either | A local problem | Fix it locally first: reader not detected |
| Cards read, but LED, buzzer or firmware commands fail only in the session | Escape commands not accepted through redirection on this setup | Not documented: test one escape command locally and in the session (escape commands) |
| Reader works in the session but not on the client while connected | USB device redirection is in use instead of smart card redirection | Untick it under Other supported RemoteFX USB devices; use Smart cards (USB redirection) |
| Communication errors only in the remote session | Network delay with USB redirection, or the session was disconnected | Prefer smart card redirection; see communication errors |
| Hyper-V VM sees no reader | Basic session, Enhanced Session Mode off, or Smart cards not ticked | Turn on Enhanced Session Mode and Remote Desktop in the VM, tick Smart cards (Hyper-V) |
| Linux VM on Hyper-V sees no reader | Microsoft: Enhanced Session Mode is for Windows VMs only | Use a Windows VM, or run the Linux software elsewhere |
| VMware or VirtualBox guest: reader missing or unknown device | USB device not attached to the guest, or no driver in the guest | Attach it per the vendor's guide; install the ACS driver in the guest |
WSL: lsusb shows the reader, PC/SC sees none | pcscd or the CCID driver missing, or permissions | Follow the Linux troubleshooting; check udev rules |
| Windows tools lost the reader after using WSL | Still attached to WSL | usbipd detach --busid <busid> or replug |
| ACR1552U types the UID in the wrong place | Keyboard mode: keystrokes go to the window with focus | Click into the Remote Desktop window first, or switch the reader to PC/SC mode |
What BSD Still Has to Test
The tracker asks BSD to test Remote Desktop redirection. These checks are planned, and this page will be updated with the results:
- ACR1252U on a Windows 11 client, Remote Desktop into a Windows 10 or 11 PC with Smart cards ticked:
certutil -scinfoin the session, then Get UID on a MIFARE Classic 1K card in the ACS Script Tool inside the session. - The same with the reader plugged into the remote PC instead: does the session list it?
- The reader name shown in the session compared with the name on the client.
- Get Firmware Version (an escape command) in the session compared with locally, with the ACS driver on the client.
- Disconnecting and reconnecting the session while a card program runs.
- ACR122U and ACR1552U repeats of check 1; a Hyper-V Windows VM with Enhanced Session Mode; WSL 2 with usbipd-win.
Sources
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.
- Microsoft: Smart Card and Remote Desktop Services (redirection to the client's reader; decision per context, by the session of the thread calling SCardEstablishContext)
- Microsoft: Configure smart card device redirection (redirectsmartcards, defaults, the Group Policy and Intune setting, most restrictive wins, certutil -scinfo test)
- Microsoft: Peripheral and resource redirection (high-level vs opaque low-level redirection; smart card reader listed as high-level) and Configure USB redirection (client and session host policies, mstsc device list, driver in the remote session, LAN latency)
- Microsoft: Supported RDP properties (redirectsmartcards)
- Microsoft: [MS-RDPESC] Smart Card Virtual Channel Extension, overview and Control_Call (reader control calls, device-specific control codes)
- Microsoft: Smart Card Return Values (ERROR_BROKEN_PIPE)
- Microsoft: Share devices with Hyper-V Windows virtual machines (Enhanced Session Mode, Windows VMs only, smart cards under More) and Microsoft support: a USB device doesn't appear in a Hyper-V VM (no built-in USB passthrough; Enhanced Session Mode Policy and user setting)
- Microsoft: Connect USB devices (WSL) (usbipd-win, prerequisites, bind, attach, detach)
- ACS escape commands, pseudo-APDUs and EscapeCommandEnable: ACS manuals as cited on BSD's firmware version guide
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.
