Our application reads data from smart cards using a reader connect to
the COM port on the user's PC, so we have a problem when our
application is used remotely through Terminal Services.
Is there a way to have TS/RDP read data from the COM port on the
user's client PC, and send data to our application running on the TS
server?
Thank you.
CLIENT
On the Local Resources tab, check "Serial Ports"
SERVER
Start-->Run-->tscc.msc
Right-click Rdp-Tcp and choose Properties
On the Client Settings tab, *uncheck* "COM port mapping"
To check and see if the ports are redirected in your session:
Open a command prompt and type the following:
change port /query
The output will look something like this:
AUX = \DosDevices\COM1
COM1 = \Device\RdpDrPort\;COM1:19\tsclient\COM1
COM2 = \Device\RdpDrPort\;COM2:19\tsclient\COM2
COM3 = \Device\RdpDrPort\;COM3:19\tsclient\COM3
LPT1 = \Device\RdpDrPort\;LPT1:19\tsclient\LPT1
PRN = \DosDevices\LPT1
From the above, you can see that COM1-3 and LPT1 are
redirected to my local ports. The 19 is the session id, so
that will change depending on the current session id.
If they are not redirected, the output will look something
like this:
AUX = \DosDevices\COM1
COM1 = \Device\Serial0
COM2 = \Device\Serial1
Thanks.
-TP
lars