Logon script and terminal services client

Giganews Newsgroups
Subject: Logon script and terminal services client
Posted by:  snorre (snor…@discussions.microsoft.com)
Date: Mon, 27 Mar 2006

I've made a VB logon script that is being run when Windows clients log on to
the domain server.  However, the domain server is also running terminal
services and when users log on using remote desktop the same VB logon script
is being run and causes a problem.  How can I disable this logon script when
users log on remotely?

I guess there is a way to write the logon script to check wheter the session
is remote or local, but I don't know how. Please help, thank you!