Here is some info about detecting RAS connections to control login scripts. I thought I sent this earlier but maybe not. This was a response to a request for info. Sorry, I deleted the original request. Hope this helps.
SS
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm