Shane,
I have tried a lot of things:
1. A domain scan to search for Servers:
Code:
$computers=netview2(Domain)
and
Code:
$os = osid($comp)
If $os[1]='Win2K' AND $os[2]<>'Workstation' AND InStr($comp,"comp")<>0
I wanted to know if this causes the problem so i used instead:
Code:
$computers = 'comp1','comp2','comp3','comp4','comp5','comp6','comp7','comp8','comp9','comp10'; etc
The ; before $computers is a typo and isn't the problem that I meantion.
2. When the script starts every 30 minutes a new task it balances the network load:
Code:
$timediff='00:30'
$time='16:30'
Code:
;$time=serialtime(serialtime($time)+ serialtime($timediff))
; Date;------------------------------
;
;If $time='00:00' OR $time='24:00'
; $date= DateMath($date, 1)
;EndIf
I wanted to know if this part of the script causes the problem so i only used: $time='16:30'
If you delete all the code with an ; before it you see that the first and second script is almost the same. ScheduleTask is the only UDF that is called. The different part is:
Code:
$computers = 'comp1','comp2','comp3','comp4','comp5','comp6','comp7','comp8','comp9','comp10'
For Each $comp In $computers
$rc=scheduletask($name, $comp, $date, $time, $type, $cmd)
? 'Error '+@ERROR+' - '+@SERROR
Next
So, The problem must be in this piece of the code.. in combination with the ScheduleTask UDF.
Ps. The UDF versions are the ones I found on the UDF forums of KORG and Scriptlogic. See the links in the first post.
De beste wensen en een gelukkig nieuw jaar
Best wishes and a happy new year