Scheduled Tasks

(imported topic written by jr6591)

Is there a way to determine if a Windows 2000 or 2003 server has a scheduled task that is active? Thanks

(imported comment written by brolly3391)

jr,

You might start by checking

q:lines of files of folder “Tasks” of windows folder

There might be a way to extract information from any .JOB files there.

Another approach would be to query WMI using http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_scheduledjob.asp

On XP you can use schtasks /query>results.log and then parse the results.log for your answers but I don’t think that is available under 2k and 2k3 servers.

Let me know if those ideas work for you. If you make some progress and get stumped, come on back for more advice.

Cheers,

Brolly.