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

Check task's RunOnlyIfLoggedOn flag in Windows 7

Dec 12, 2011 at 1:23 AM

Hi, the property Settings.RunOnlyIfLoggedOn is used in v1 only.  How do I check a task's RunOnlyIfLoggedOn flag in Windows 7?


Dec 15, 2011 at 6:00 PM

Tasks are registered under an account in Windows 7 and that account, if a password is provided, will be logged in and the task will run under its permissions.

Dec 15, 2011 at 8:53 PM

I'm write an application to update the existing tasks' RunOnlyIfLoggedOn flag.  If it was set to true, then update it to be false.  I'm having problem to get this value in Window7 environment.  Any idea?


Dec 16, 2011 at 7:06 PM

On Windows 7, you need to register the task with a TaskLogonType of either InteractiveToken or Group. See this link for more information.