Open-AudIT

What's on your network?
It is currently Thu Jan 18, 2018 5:45 pm

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: Wed Dec 01, 2010 4:46 am 
Offline
Newbie

Joined: Tue Nov 30, 2010 11:55 am
Posts: 2
Reported as a bug in Vista, the command in schtasks.exe /query /v /fo csv /s in audit.vbs generates and error commenting that option /nh is not valid for List. Funny, because you are not requesting a list but a csv file.

I got it running again by removing the /nh option from the command, and adding a counter, and a statement that removes the 1st line of the temp .csv file that contains all scheduled tasks

Like so:
icounter=0 'added to counter the VIsta /nh bug
Do While Not oTF.AtEndOfStream
sLine = oTF.Readline
if icounter>0 then 'added to counter the VIsta /nh bug, removes header line
if sLine <> "" Then
' Parse the line
...
end If
end if 'added to counter the VIsta /nh bug
icounter=icounter+1 'added to counter the VIsta /nh bug
Loop


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 1 guest


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