Windows Port Redirection

Posted on by admin

By default Remote Desktop Services allows this COM port redirection.If you enable this policy setting users cannot redirect server data to the local COM port.If you disable this policy setting Remote Desktop Services always allows COM port redirection.If you do not configure this policy setting COM port redirection is not specified at the Group Policy level. Service overview and network port requirements for Windows. For more information about the default dynamic port range in Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, and Windows Vista, click the followng article number to go to the article in the Microsoft Knowledge Base. Folder Redirection.

Applicable Products

  • XenDesktop
  • XenApp

Objective

LPT and COM port settings are configurable via Studio in XenApp / XenDesktop 7.9 or newer. In versions 7.0 through 7.8, these settings were only configurable using the registry. For more information, see Port redirection policies in Citrix Documentation.

Client COM port mapping allows devices attached to the COM ports on the user's endpoint to be used during virtual sessions. These mappings can be used like any other network mappings.
For each COM port, a driver in the OS assigns a symbolic link name such as COM1, COM2, etc, which is then utilized by the applications to access the port.

While most PCs no longer have built-in serial (COM) ports, the ports are easy to add via USB converters.
Beware that even if a device can attach to the endpoint via USB directly does not mean it can be redirected via Generic USB Redirection. Some USB devices function as virtual COM ports, which applications can access in the same way as physical serial port. The OS can abstract COM ports and treat them like fileshares. Two common protocols for virtual COM are CDC ACM or MCT.
(When connected through RS-485 port Applications might not work at all. Get a RS-485-to-RS232 converter to use it as a COM port)

Applications suited for serial ports often involve sensors, controllers, old check readers, pads, etc.

Some USB virtual COM-port devices use vendor-specific drivers in place of the Windows-provided drivers (usbser.sys).

These drivers allow you to force the virtual COM port of the USB device so that it does not change even if connected to different USB sockets. This might be done from Device Manager / Ports (COM & LPT) / Properties, or from the Application itself, that controls the Device.

Warning: Some applications will only recognize the Device (e.g. signature pad) consistently if it is connected to COM1 or COM2 on the client workstation.

Instructions

You can map client COM ports to a Citrix session in three ways:

  1. Using Studio policies.
  2. From the VDA's command prompt.
  3. Or from the Remote Desktop (Terminal Services) Configuration tool.

For information about policies, see the XenDesktop or XenApp documentation in edocs.
Let us describe methods #1 and #2 from above:

Windows launcher for pc download. 1 Users must download Microsoft Launcher from Google Play. Downloading Microsoft Launcher replaces the default launcher. Microsoft Launcher does not replicate the user’s PC home screen on the Android phone. Users must still purchase and/or download any new. Aug 24, 2019  Microsoft Launcher for Windows – Download Latest version (5.3.1.50377) of Microsoft Launcher for PC Windows 10,8,7 32-bit and 64-bit directly from this site for free now. Download Microsoft Launcher for Windows. Download Minecraft for your PC or Mac. Create, explore and survive! On Arch and Arch based distributions, the package is available as minecraft-launcher from the AUR. AUR is a repository of packages maintained by the community. Download Minecraft: Java Edition for Windows. You'll need to own Minecraft: Java Edition to play the. The Best Free Launchers app downloads for Windows: Start Menu 10 Executor RK Launcher Launcher WebRun XWindows Dock Brutus Matrix Screen Locker HotKey. Why Download Launcher using YepDownload? Launcher Simple & Fast Download! Works with All Windows (64/32 bit) versions! Launcher Latest Version! Fully compatible with Windows 10; Disclaimer Launcher is a product developed by Micro-Sys. This site is not directly affiliated with Micro-Sys.

  1. For XenApp/XenDesktop 7.9 or higher, enable the 'Client COM port redirection' and the 'Auto connect client COM ports' Studio policies. Once applied, some info is available in HDX Monitor:

  2. Or, If the 'Auto connect client COM ports' is failing to map the port, you can do it manually or via logon scripts. Log on to VDA, and at a command prompt window, type:
    NET USE COMX: CLIENTCOMZ:
    or
    NET USE COMX: CLIENTCLIENTPORT:COMZ:

Where 'X' is the number of the COM port on the VDA (ports 1 through 9 are available for mapping), and 'Z' is the number of the client COM port you want to map.

To confirm that the operation was successful, type in a VDA command prompt: NET USE
The list that appears contains mapped drives, LPT ports, and mapped COM ports.

To use this COM port in a virtual desktop or application, install your user device Application and point it to the mapped COM Port name. For example, if you map COM1 on the client to COM3 on the server, install your COM port Device application in the VDA and point it to COM3 during the session.

Windows Server Port Redirection

Use this mapped COM port as you would a COM port on the user device.

Important: COM port mapping is not TAPI-compatible. TAPI devices cannot be mapped to client COM ports. The Windows Telephony Application Programming Interface (TAPI) defines a standard way for applications to control telephone functions for data, fax, and voice calls. TAPI manages signaling, including dialing, answering, and ending calls and supplemental services such as holding, transferring and conference calls.

Troubleshooting

  1. Make sure you can access the device from the endpoint directly, bypassing Citrix (while the port is NOT mapped to the VDA, id est, you are not connected to a Citrix session). Follow any troubleshooting instructions that came with the device and verify it works locally first.
    When a Device is connected to a Serial COM Port, a registry key is created on this hive.
    This can also be queried from the command prompt by running
    'chgport /query'.
    If troubleshooting instructions for the device are not available, you may try opening a PUTTY session and selecting Session and in Serial Line select your COM Port.
    Running 'MODE' in a local command window might tell you the COM port in use, and the Baud/Parity/Data Bits/Stop Bits, which you will need to match in your Putty session.
    If the PUTTY connection is successful, you may be able to press 'Enter' and see some type of feedback from the Device. Whatever characters you type may be repeated on the screen, or responded to.
    If this step is not successful, you will not be able to access the device from a virtual session.

  2. Now, map the local COM port to the VDA (either via Policies or via NET USE COMX: CLIENTCOMZ:) and repeat the same PUTTY procedures as above but this time from the VDA PUTTY.
    If PUTTY fails with error 'Unable to open connection to COM1. Unable to open serial port' then probably COM1 is in use by some other device.
    Run 'chgport /query'. Is the built-in Windows serial driver on the VDA auto-assigning DeviceSerial0 to a COM1 port of your VDA? If so, you can correct this:

    1. Open CMD on the VDA and type NET USE
    2. Delete any existing mapping (e.g. COM1) on the VDA: NET USE COM1 /DELETE
    3. Map the device to the VDA: NET USE COM1: CLIENTCOM3:
    4. Point your Application on the VDA to COM3
      Lastly, you could try to map your local COM Port (e.g. COM3) to a different COM Port on the VDA (other than COM1, for example COM3), and make sure your application is pointing to it:
      NET USE COM3: CLIENTCOM3:
  3. If now you do see it mapped, PUTTY is working but no data passing, it might be a race condition. Perhaps the application connects and opens the port before it is mapped, locking it from being mapped.

    You could try one of the following:

    Upgrade xp to 8 free. Microsoft Office XP Update Service Pack 2 (SP-2) provides the latest updates to Microsoft Office XP. Office XP SP2 contains significant security enhancements, as well as stability and performance improvements. Some of the fixes included with SP2 have been previously released as separate updates. This service pack combines them into one update. Hp microsoft windows xp upgrade free download - Windows Vista Upgrade Advisor, Windows Vista Home Basic upgrade, Windows Vista Business upgrade, and many more programs. Oct 02, 2019  No, at this time there is no free upgrade for XP 7. It is however of course possible to upgrade from XP 7 in general. Before getting started, or attempting the upgrade, you'll want to go ahead and download the Windows 7 Upgrade Advisor - http://www.microsoft.com/en-us/download/details.aspx?id=20. Apr 20, 2010  If your PC is running Windows XP, setup will make sure.NET Framework 2.0 is installed. If it's not found, setup will help you install it. Plug in and turn on any USB devices or other devices, such as printers, external hard disks, and scanners, that you regularly use with the PC you're checking; Run the Windows 7 Upgrade Advisor from your start menu or desktop.

    1. Opening a second application published on the same server first, wait a few seconds for the port to be mapped, and then open the real application that actually tries to use the port.
    2. Enabling the COM Port Redirection policies ('Client COM port redirection' and 'Auto connect client COM ports') from the Group Policy Editor in AD instead of Studio.
      Policies applied that way might be processed earlier than Studio policies, guaranteeing that the COM Port is mapped. Citrix Policies are pushed to the VDA and stored in:
      HKLNSOFTWAREPoliciesCitrix<user session ID>
    3. You can use a logon script (see script below) for the userOr, instead of publishing the application, publish a .bat script that first deletes any mapping on the VDA, remaps the Virtual COM Port and then launches the application:
      @echo off (or whatever value needed)
      MODE COM2: BAUD=9600 PARITY=N Data=8 Stop=1 (or whatever value needed)

      START C:Program Files<Your Software Path><your_software.exe>
      NET USE COM1 /delete
      NET USE COM2 /delete
      NET USE COM1: CLIENTCOM1:
      NET USE COM2: CLIENTCOM2:MODE COM1: BAUD=1200

    4. Process Monitor from Sysinternals is the tool for last resort; when running it on the VDA you should Find and Filter objects like 'COM3', picaser.sys, CdmRedirector, but especially around <your_app>.exe. Any errors might pop-up there as 'Access Denied' or similar.

Windows 10 Serial Port Redirection Over Rdp

Additional Resources

Local Port Redirect Windows

  • CTX202448 - COM Port Communication Issues when 20 or More Users are Concurrently Using COM Ports in XenApp 6.5

  • CTX214430 - Topaz Signature com port Redirection Works The First Time, Subsequent Logins Fail Requiring a Reboot