[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Mapping COM ports in Citrix 4.5 for every user

Posted on 2013-05-17
Medium Priority
Last Modified: 2013-05-20
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.
Question by:First Last
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Accepted Solution

Daniel Borger earned 668 total points
ID: 39177191
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.
LVL 25

Assisted Solution

Coralon earned 668 total points
ID: 39178025
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.  

LVL 26

Assisted Solution

by:Tony J
Tony J earned 664 total points
ID: 39180200
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.

Author Comment

by:First Last
ID: 39180831
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" https://website.com

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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix policies are the most efficient method to configure and tune XenDesktop environments, allowing organizations to control connection, security and bandwidth settings based on various combinations of users, devices or connection types.  Citrix …
This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question