kcovingt wrote:
Is it possible to create a report that shows all scheduled tasks on a particular pc? We have a particular virus that is creating scheduled tasks on pc's to reinfect them and cause other malicious code to be executed and it would extremely helpful to us if this is possible to show in a report. I tried looking through the different tables but could not find the exact variable I was looking for.
You can easily do that like this:
1. create a file with the hostnames, and give it a name
hostnames.txt like this:
hostname1
hostname2
hostnameX
2. create a batch file with:
FOR /F %%a in (hostnames.txt) Do schtasks.exe /query /fo list /s %%a /v
3. execute the batch file, it will scan scheduled tasks on the hostnames pointed in hostnames.txt
if you change the parameter /fo you can have several other formats, use
Schtasks.exe /query /? to check available formats.
Regards,
Paulo