I solved this problem by putting in the following in any script..this is only if you use thin clients to connect to TS and not workstations
;Get Workstation name
;
Break On
$wksta = @wksta

If SubStr($wksta ,1,2) = "NC"
EXIT 1
Endif
If SubStr($wksta ,1,2) = "Re"
GOSUB "Res"
EXIT 1
Endif
If SubStr($wksta ,1,2) = "Bs"
GOSUB "Bstud"
NC is the NCD name of the thin client.. you can either exit the script or just run whatever as a GOSUB... hope this helps

_________________________
Think you've got it cracked and then someone tells you about another prog....