Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 5:24 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Fri Oct 01, 2010 8:25 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
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]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group