Matt Klein Posted December 11, 2006 Share Posted December 11, 2006 Does anyone know of a way to determine if the user is currently in a Citrix/Terminal Services session or not? I have customers with a mixed bag of local workstations connecting directly to the Server and remote workstations connecting via a Citrix/TS server. I really would like to tell, via script or calculation, whether the user is in a Citrix/TS session or not. Any suggestions would be greatly appreciated including command line code. Link to comment Share on other sites More sharing options...
Wim Decorte Posted December 12, 2006 Share Posted December 12, 2006 Probably a couple of different ways of doing this. But the one that comes to mind is to use the environment variable SESSIONNAME. If you do "echo %sessionname%" in the command prompt you should get "Console" for a non-TS session and "RDP-xxxxx" for a TS session. Now to get that info into FM is another story, since FM doesn't allow easy integration of windows scripting but it can be done with a VBscript plugin, or with a VBscript triggering a FM import script. Link to comment Share on other sites More sharing options...
Matt Klein Posted December 12, 2006 Author Share Posted December 12, 2006 THANKS! I will definitely try that. FYI, there is actually an easy way to get that info into FM you can use a free plug-in called SpiderShell from FMWebschool. Here is their post: http://fmforums.com/forum/showtopic.php?tid/180416/ Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6338 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now