Yes. Check out
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q251066>Is it possible to determine if an application has been started under Terminal Server.
>
>I have looked at the OS() function but I get the impression that it does not tell me that the application is actually running under Terminal Server.
>I see that OS(10) can return that 'Terminal service is installed' and OS(11) can return that 'The system is a server' but I need to know if the running application is running under TS.
>
>Any suggestions are welcome.
>
>Thanks in advance,
>
>Ron Brahma