Open-AudIT
https://www.open-audit.org/phpBB3/

Scheduled Tasks not filled XP
https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=3900
Page 1 of 1

Author:  ErikD [ Tue Nov 30, 2010 12:37 pm ]
Post subject:  Scheduled Tasks not filled XP

I noticed that running "cscript audit.vbs ." did not yield any scheduled tasks. Strange, because I run the script as a scheduled task. What I found out is that the temporary file wasn't filled. It appears the variable strComputer is best replaced with system_name. This works for running "cscript audit.vbs .". I haven't tested the change in scenarios where a computer name is supplied

I changed:
sCmd = "%ComSpec% /c schtasks.exe /query /v /nh /fo csv /s " & strComputer
into:
sCmd = "%ComSpec% /c schtasks.exe /query /v /nh /fo csv /s " & system_name

and changed:
if UCase(sTask(0)) = UCase(strComputer) then
into:
if UCase(sTask(0)) = UCase(system_name) then


and the script works ok.

Author:  el_geto [ Tue Jan 11, 2011 7:29 am ]
Post subject:  Re: Scheduled Tasks not filled XP

I also removed the /NH parameter from schtasks.exe in audit.vbs and Win7 tasks started showing on my inventory.
Thanks

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/