Gargoyle,

I tested and I think you misread my post. Shouldn't it be -1 since I don't want the servers listed on the array to run if users are logging in ?



$TSList = "Terminal1,"Terminal2","Terminal3"
If AScan($TSList,@WKSTA) >-1
Do Stuff
EndIf


TIA,
tt