Two MSTSCs and one WKSPRT, oh de doo dah day!
hi,
i implementing enterprise sso kiosk solution need track launch , termination of rdp session if session times out workstation locks. sounds simple? not anymore.
we're using rds 2012 r2 , current remote desktop win7 (8.0), , bizarre process chaining point just, well, unpredictable.
using procmon can see consistently workflow when launching rdp file connect rds broker follows:
- mstsc.exe launches
- wksprt.exe (remoteapp , desktop connection runtime) starts
- a new mstsc.exe process starts up.
- the original mstsc.exe exits (sometimes!)
- wksprt.exe continues running.
- user disconnects or rds session times out
- wksprt.exe terminates mstsc.exe process started or
- the original 1 terminates
- about 7 seconds later, if either mstsc.exe session still running, terminates
the problem makes nigh on impossible monitor user logon/logout workflow in consistent way! don't know 1 iteration next, it's going do.
if track first mstsc process only, correctly detect user logon , session disconnect client side, if first instance 1 presents connection dialog. every , again second mstsc process 1 presents ui, not first one, step 4 leads think user's rdp session has terminated when it's starting up.
and particular favourite... every , then, 1 mstsc.exe instance dies when user disconnects other 1 sticks around 7-8 seconds if place dependency on "logout detection" on both instances disappearing there's 8 second window pc sat unlocked , can break thin client desktop.
and of course, wksprt.exe doesn't die unless kill manually.
window focus tracking works partially, don't want end having weird stuff mitigating user pressing ctrl-alt-del , breaking out local desktop booting them out of rds session.
does have ideas on how best tackle this?
tim staddon
hi,
thank question.
i trying involve familiar topic further @ issue. there might time delay. appreciate patience.
thank understanding , support.
jeremy wu
technet community support
Windows Server > Remote Desktop Services (Terminal Services)
Comments
Post a Comment