Mapping COM ports in Citrix 4.5 for every user

Hi All

I had posted earlier looking for a way to enable com port redirection in Citrix 4.5.  Post is here:

The technique described didn't work for me and in fact caused long delays for Citrix users logging in (2 minute pause on Running Login Scripts).  Its possible I did something wrong but I did take care to follow the directions exactly.

I'm wondering if this is the best way to do it and if it might be worth another try or if there is another way that would work better for me.  Basically I need to redirect the local client's COM1 port to the Citrix session for a signature pad to work.  I can do it manually just fine but scripting it for each user who accesses the application would be ideal.
First LastAsked:
Who is Participating?
Daniel BorgerConnect With a Mentor Senior Citrix Engineer- CCEECommented:
You could write a com\.bat file that launches the application, then disconnects any current com mappings in the session them maps the one you want. You could then publish the com file and change the icon.
CoralonConnect With a Mentor Commented:
That's what I had told him.  It really is the proper (and only) way to do it. If it is taking 2 minutes, then there is probably something wrong with the connectivity between them.  Normally, this is a 2-6 second process.  

Tony JConnect With a Mentor Lead Technical ArchitectCommented:
I agree with Coralon on this. You might want to try running the command he gave you from a user session (if possible) and see what the output is. On the face of it, it sounds like it may be asking for user interaction of some kind.

Or perhaps add a net use com1: /delete to delete it first and see if that speeds it up.
First LastAuthor Commented:
Sorry for the delay guys, just got back in.  I experimented a bunch and found that the batch file was the easiest way to get this working.  What I had wanted to do was the technique described in the first article I linked by changing the usrlogon.cmd file (which I wasn't able to get working) but in hindsight this was probably not the best idea since I only need this to work in one application.  Here is the .bat I came up with:

REM Dan Brown - 5-17-2013
@echo off
net use com1: \\client\com1:
sleep 5
start "C:\Program Files (x86)\Internet Explorer\iexplore.exe"

I had to install the Server 2003 toolkit in order to get the Sleep command to work.  This does the trick, I run another script at logoff to remove the mapping.

Thanks for all the help guys, I'll split the points evenly.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.