Remote App session number

Anonymous
2021-07-21T05:42:23.807+00:00

HI

I have a problem with my Remote App using Windows Server 2016.

when a client PC connects the session host server and gets session number, the session number keeps increasing every time when the client PC login-logouts.

it is causing changing the name of the redirected printers(ex;Epson redirect number ××).

when the redirected printer's name changes, the application I am using cannot recognize the printer's name that I was priviously using.

How do I stop increasing the session number in RDP?

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,551 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,336 Reputation points
    2021-07-21T08:03:46.487+00:00

    Hi,
    It seemed impossible to stop increasing the remote session ID and it is essential in the redirected printer name for multiple reasons.

    Thus instead, we should consult the workaround from following points:
    1.Extend the disconnected session timeout to ensure that when user login next time, it will be redirected to previous session+ restrict user with single session.

    Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits----->Set time limit for disconnected session
    Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections----->Restrict Remote Desktop Services user to a single Remote Desktop Services session

    But this workaround might have some limitation like users shall not log off the session but simply disconnected. You could test this configuration in test environment first.

    2.Utilize the rename tool to customized the redirected printer and combine with batch file or task scheduler to be triggered each time of login.

    Per searching, the tool "Printerceptor" has been tested in RDS 2008 and RDS 2012 R2 to successfully rename the redirected printer name:
    https://github.com/zniezelski/Printerceptor/releases
    Kindly review all the details and limitation listed in above link.

    Reference of similar discussion:
    https://community.spiceworks.com/topic/766809-rdp-printer-redirection-and-static-names

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
     


    If the Answer is helpful, please click Accept Answer and upvote it.

    Thanks,
    Jenny


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.