The random_order option to randomize the audit order for a domain scan only works if the domain_type is ldap. Some inconsistent indenting makes this not totally obvious.
[code] Index: audit.vbs =================================================================== --- audit.vbs (revision 1251) +++ audit.vbs (working copy) @@ -496,7 +496,8 @@ Echo("Computer Name from ldap: " & strComputer) objRecordSet.MoveNext Loop -' Randomise the scan if asked. + end if + ' Randomise the scan if asked. if random_order <> false then Call ArrayShuffle(comparray) Echo ("Computer List Randomised") @@ -505,7 +506,7 @@ num_running = HowMany Echo("Number of systems retrieved from ldap: " & (Ubound(comparray) +1)) Echo("--------------") - end if + For i = 0 To Ubound(comparray) ' For i = 118 To 128 while num_running > number_of_audits [/code]
|