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 ...