I just recently tried the following snippet:
I'm using the latest DLL and I'm also able to create both daily and weekly triggers.
Any ideas on why the LogonTrigger wouldn't be working?
new TaskService().AddTask("Test", new LogonTrigger(), new ExecAction("AnExecutable.exe", null, null));
And I get: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))I'm using the latest DLL and I'm also able to create both daily and weekly triggers.
Any ideas on why the LogonTrigger wouldn't be working?