Try
 Code:
If SessionType="RDP"
  Exit 0
Endif

Or possibly
 Code:
if SessionType="Con"
  ;add your code here
endif
_________________________
(... better days ahead)