code:
 
If @PRODUCTSUITE & 16 ;detects the Terminal Services session
? Color y+/r "Terminal Services Session detected - Aborting login script..."
Sleep 1
Exit
EndIf

Works for me....