trigger when user is not logged in

Topics: Setup
Feb 5, 2014 at 12:49 PM
Does someone knows is there a possibility do create tasks that will fire even when user is not logged in? There is such option in windows task scheduler, but i cant find it in the wrapper. Situation is, after server reboots (power issues or whatsoever), no user log in automatically.

Thanks in advance, btw awesome work with the wrapper
Feb 6, 2014 at 1:58 AM
There a couple of ways: 1) You can define a BootTrigger using an account that has Administrator rights or SYSTEM. This will run every time the system is booted. 2) Use any trigger, but register with an account that provides a password or the SYSTEM account.
Marked as answer by delapiero on 2/6/2014 at 3:51 AM
Feb 6, 2014 at 10:52 AM
Edited Feb 6, 2014 at 10:53 AM
Thanks, it worked, i used

ts.GetFolder("ProgressDatabaseCleaner").RegisterTaskDefinition(@"ProgressDataBaseCleaner1", td,TaskCreation.CreateOrUpdate, "SYSTEM", null, TaskLogonType.ServiceAccount);