2
I have a couple of DB servers that each run a RemoteApp that users launch to access said DB. The problem is that the application itself does not always exit gracefully when the user ends it, which leaves a remote session open and the user is unable to access said app again.
What I am trying to create a script that would terminate any current existing connection to each specific server (i.e. Script A would terminate for RemoteApp A, Script B would terminate for RemoteApp B).
Not sure if it adds an extra complication but the users are all working in a Remote Desktop environment (i.e. user connects to RDS1 or RDS2 and then launch RemoteApps to DB1, DB2 etc. from there).
All servers are running Windows Server 2012 R2.
Not sure if this meets your requirements, but you could also configure the remote server to automatically end the user's sessions after they've been disconnected for a set amount of time. No script required. – I say Reinstate Monica – 2016-08-27T19:40:57.677
I actually have that currently setup, however client has conflicting needs for a way to terminate quickly and to have the session stay open for a significant period of time (idle time of up to half an hour). The joys of IT – Mickycampbell – 2016-08-30T03:33:27.130
Micky - Any update on this and whether or not the answer I provided helped with the task? – Pimp Juice IT – 2017-04-10T20:37:44.050