Birkemeier Consulting Tech Blog

Tuesday, July 22, 2008

Allow Remote desktop to listen on more than one port at a time.

There are times when it would be helpful to have Remote Desktop listen on more than one port at a time. Microsoft has a knowledge base article on how to do it. (kb555031)

In order to add the new listening port:

1) Run REGEDIT on your Server.

2) Export the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

3) Edit the REG file and change the name of the key to something like:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp-New

4) In the REG file find
PortNumber
and change it to whatever port you want.

5) Import the REG file back to the registry.

You can now connect to the new port by using the "old" Windows 2000 Terminal Server client. A better option is to use the XP RDP 5.1 or the newer Windows Server 2003 RDP 5.2 client.

To Alter the Port on the client side:

1) Go to the Start menu and click on Run.

2) On the Run menu type MSTSC and click Enter.

Note: To use RDP on computers with operating systems other than Windows XP/2003 you will first need to install the RDP client.

3) In the RDP window, in the Computer box, scroll to the computer name or IP to which you wish to connect.

4) Add a ":Port" (without the quotes) where "Port" is the decimal value of the destination port.

5) Press Connect.

Another method of connecting to a different port that default is to run the MSTSC command with the required command line parameters:
/v:ServerName[:Port]

For example: MSTSC /v:192.168.0.150:3390

Labels: ,

Thursday, June 12, 2008

Remote desktop client printer does not show up in RDP session.

If you have a printer does not show up in a remote desktop session, it could be that the port name it is using starts with something other than COM, LPT or USB. This behavior is by design, but can be altered to allow any port name. See Microsoft kb article 302361.

http://support.microsoft.com/default.aspx?scid=kb;en-us;302361

To resolve this problem on a computer that is not running Windows Server 2003, force all ports (including DOT4) on the client computer to be filtered for redirection. To do this, add a DWORD value named FilterQueueType to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR and set its value data to FFFFFFFF.

Follow these steps, and then quit Registry Editor:
1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following key in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR
3. On the Edit menu, point to New, and then click DWORD Value.
4. Type FilterQueueType, and then press ENTER.
5. On the Edit menu, click Modify.
6. Type FFFFFFFF, and then click OK.
This enables all ports on the client to be redirected.

Even after applying this fix, you may have difficulty getting a multi-function printer to work properly.

Labels: , ,