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

Configure for: Different Dropdowns

Sep 26, 2012 at 6:48 PM

Hi - I am using Win 7 and I was wondering why when I create a task through .NET I only have the Configure for: options of 'Windows Vista or Windows Server 2008' and 'Windows Server 2003, Windows XP, or Windows 2000'.  But when I go back into the task though Task Manager the options are 'Windows Vista, Windows Server 2008' and 'Windows 7, Windows Server 2008 R2'.  I was wondering what setting I was missing.


Sep 28, 2012 at 2:38 AM

In the 1.8.3 version of the library, this dropdown does not exactly match the behavior found in the Task Scheduler applet. In that version of the library, there was no intelligence that would allow a successuly "downgrade" of functionality from a 2.0 task (Vista and higher) to a 1.0 task (XP). I have added that functionality in the 1.9.0 beta code.

Nov 8, 2012 at 2:58 PM

Great!  How would I implement that?  Is there an example somewhere I can look at?  Thanks!

Nov 8, 2012 at 5:12 PM

You first set the desired Task.Defintion.Settings.Compatibility to the version you want to go to and then use the Task.Definition.Validate method to determine if the current settings will support that change. For a list of properties that are not supported in the different versions of the native library, look at the TaskDefinition.LowestSupportedVersion property implementation in Task.cs in the Source Code repository.