This project has moved and is read-only. For the latest updates, please go here.

User Login And Logout

Topics: Examples
May 7, 2014 at 10:52 AM
i want start and stop task scheduler when user is Login then sheduler should be star as par given start time and when user is Logout then scheduler should be stop as par given duration time.
please sir reply soon with as suitable code.
May 7, 2014 at 3:39 PM
I am assuming you mean start/stop a task and not start/start the Task Scheduler. You will use a LogonTrigger with a blank UserId (so it affects all local users) at start and then you will need to determine when to shut it down as there is not a Logoff trigger.
Marked as answer by dahall on 9/1/2015 at 10:05 AM
May 8, 2014 at 6:02 AM
Thanks Dahall......