$ 0 0 Your logic doesn't work. You can't have a LogonTrigger that is able to run when the user is not logged on. What is the requirement? Is it that you need a task to run using a specific user's credentials every hour?