Open alimfazeel opened 1 year ago
Same
Hi,
What you can do is set the disconnection timeout to a low value, (i.e.: 1 sec) so that disconnected sessions are closed straight away after being disconnected. You can do it either from the RDS role settings (server administration) or the RDP host registry:
Download the file :
https://github.com/cedrozor/myrtille/blob/master/Myrtille.Services/RDPSetup.reg
Change "MaxDisconnectionTime" as below:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] ; hexa, 1000ms = 1sec "MaxDisconnectionTime"=dword:000003E8
After editing the file (and removing the other values you don't need to change), import the value(s) into your registry (double click the file then accept import).
Note that it will break the "Reconnect on resize" feature of the Myrtille toolbar.
Hi @cedrozor
Thanks for your response,
in our use-case user runs some calculations and disconnects the sessions to keep the calculations running in the background so we cannot logoff user as per disconnection.
We want to logoff only when user click CLOSE button. We are generating session key with a 'cmd script' to logoff the user when CLOSE button is clicked. in Windows 2013, it was working absolutely fine.
But in Windows Server 2022, it is not running the script if windows session of the user is already logged in, in case user is logged off it works normally.
HI
We recently upgraded our server from 2012 to 2022, We are trying to connect to WIn Server 2022 now,
User opens and close the session from application.
For closing, I need to trigger a script to close sessions properly.
Issue is,
Note: It was working fine with windows server 2012,