Executable creating a scheduled task behaves unexpectedly when running with SYSTEM privileges.

  • Thread starter Thread starter Good Man Hello
  • Start date Start date
G

Good Man Hello

Guest
I have a cpp program which creates a task that runs a command to delete a directory. The task has a few seconds delay after registration. When I run as administrator everything goes as usual, but when I create an elevated shell using psexec -i -s cmd and attempt to run the program the task loses its delay, and any record of it in registry or the task scheduler is gone like it never existed. When I run directly from psexec using psexec -i -s something.exe I get an access denied error. The task does execute though and does what it is supposed to and the directory is deleted. Tested on both windo

Continue reading...
 

Similar threads

Back
Top