December 11, 200619 yr 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.
December 12, 200619 yr 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.
December 12, 200619 yr Author 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/
Create an account or sign in to comment