Quantcast
Channel: Forum Remote Desktop Services (Terminal Services)
Viewing all articles
Browse latest Browse all 27650

Detecting an active Remote Connection using Windows RDP

$
0
0

Hello,

I am currently working on a feature that programmatically(using Java) detects whether a system running Windows RDP has any active established connections. To make this distinction my current approach is to interrogate Windows Registry (HKey.CURRENT_USER\\Volatile Environment) for the environmental variable SESSIONNAME which has the value "Console" when the machine is not in sharing mode and "RDP-Tcp#0"when connected remotely from another machine.

However, I have only tested this solution using Windows 7 and Windows 10 and I would like to know if there could be possible issues in the case of other versions or other discrepancies that would make this solution not viable. Also, if the current solution is overly complicated, are there simpler alternatives that I could use?

Thank you for your time and best regards,
iulia_paniti


Viewing all articles
Browse latest Browse all 27650

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>