question

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ asked JennyYan-MSFT commented

Remote App session number

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-services
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

May i know if there is any update for your question?

Hope the information provided is helpful and please feel free to let us know more assistance needed.



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

Thanks,
Jenny

0 Votes 0 ·

1 Answer

JennyYan-MSFT avatar image
0 Votes"
JennyYan-MSFT answered JennyYan-MSFT commented

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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I am checking to see how things are going there on this issue.

Please let me know if you would like further assistance.


Hope this helps and please help to accept as Answer if the response is useful.

Thanks,
Jenny

0 Votes 0 ·