How can I add Run whether user is logged on or not to my application

Jun 3, 2016 at 4:52 PM

I have an application that creates a scheduled task, but the program it is using it needs, to run whether user is logged on or not.

I have done a lot of research and tried many things, but cannot seem to get this working.

Can someone please help me.

Jun 4, 2016 at 8:12 PM
An Administrator may register a task to run as the SYSTEM account or any user can register a task as any user and supply a password. The first option cannot access the network and the second option will only be able to run a task the requires the rights of the supplied user. See the Security Page for examples.
Marked as answer by dahall on 6/4/2016 at 1:12 PM
Jun 7, 2016 at 3:21 PM
Hi Dahall,

So I'm not seeing where i can use the Run whether user is logged on or not.

What I can do is set the Run with TaskRunLevel.Highest, but this did not work.

Running it as an Administrator did not work, if I logged out of the server.

I looked a the Security page, I did not see anything related to what I need, can you please help me find the correct code.