Procmon /Terminate not working to stop procmon
I have two scheduled tasks set up. The first task calls procmon with these arguments:
/Quiet /AcceptEula /Minimized /BackingFile c:\procmon\procmon.cap
The second task has these arguments:
/Terminate /AcceptEula
The /Terminate /AcceptEula task does not end up shutting down procmon. There is still a ProcMon64.exe instance running. I tried the same from a command line and that also didn't work. I also tried calling procmon64.exe with the /Terminate argument and that also did not work to shut down the running ProcMon64.exe. I also tried running this with the /Run32 to see if the 32bit version would work, and that didn't help either.
I'm running this on a machine running Server 2019.
Any thoughts on how to get Procmon to stop when running as a task?
I'm using 3.8.7 downloaded today (1/7/2022).