1
I'm trying to set up a personalized security option on my computer to take a picture using the webcam whenever someone tries to log onto my computer using an incorrect password. I've set up the task in the task scheduler, and I can get it to pass, but then the problem begins. When the task passes, it triggers like a million times and keeps going until I disable the task.
Does anybody know why it might be doing that and how to make it not?
EDIT: I'm not an expert at the task scheduler, but I think this is the Event log and trigger set.
EDIT: I fixed the recursive running issue by inserting the following into the batch file that was triggered:
<code>schtasks /change /tn "\Event Viewer Tasks\Task_Name" /DISABLE</code>
and checking the "run with highest privileges" box in the settings. This disables the task once it's been run, effectively stopping recursion.
However, now the program no longer runs at incorrect password until after I've logged in, defeating the purpose.
Try changing "/change" to "/end" and remove "/disable" from your bat file line where you stop the recursion. – Kinnectus – 2014-06-24T21:28:17.550
Big Chris: Unfortunately, I tried that first. It didn't stop the recursion; in fact, it only stopped a single instance of the program. – GDA – 2014-06-30T01:42:20.033
where does the recursion come from? what is the name of your batch file? It's not ´schtasks.bat´ or is it? – bjoster – 2017-03-31T11:21:22.260
share the event logs and trigger set – pulsarjune – 2014-06-13T06:21:13.993
I like the idea of this... – Kinnectus – 2014-06-13T06:34:25.470
I've added a link to what I think pulsarjune is asking for to the original post. – GDA – 2014-06-16T23:47:58.440