I think under terminal services you have a CLIENTNAME environment variable that you don't have on a regular logon. Also, there is a SESSIONNAME that has "Console" when you're local, and "RDP-Tcp#9999" some number when you're Remote desktop.
Fred On Wed, Mar 3, 2010 at 2:55 PM, Malcolm Greene <[email protected]> wrote: > Anyone have any ideas on how to detect whether an application is > being used via Terminal Services, Remote Desktop and/or Citrix? > > I seem to remember that Terminal Services and/or Citrix sessions > set some extra environment variables. Can someone who is running > Terminal Services or Citrix confirm whether this is still the > case and if so, what environment variables are being set. > > Thank you, > Malcolm > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

