Hi, I'm attempting the same thing but it appears the script continues to run on the excluded server...

;terminal server test for tiwsmgr.exe
$SystemList = 'terminalserver'
If AScan ($SystemList, @WKSTA)>=0
;Do nothing
Else
RUN "\\server\tiwsmgr.exe"
EndIf

Any assistance would be greatly appreciated. Thank you.


Edited by puck5151 (2004-10-11 11:35 PM)