Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

Commented Unassigned: Property Task.Enabled is not saved [11703]

$
0
0
I am using Microsoft.Win32.TaskScheduler.dll in an appliction to create and change a task. If I set the property Task.Enabled to False it will not be saved to Windows. All other information is saved properly.

Code:

Dim Task1 As Task = CurrentTaskService.RootFolder.RegisterTaskDefinition(PathOfTask, TaskDefinition1)
Task1.Enabled = False
Task1.RegisterChanges()

This was working properly in build 2.0.3, but does not work in build 2.2.0.
Comments: ** Comment from web user: dahall **

As of version 1.8.1, under V1 systems (prior to Vista), this property will immediately set the enabled property and re-save the current task. If changes have been made to the TaskDefinition, then those changes will be saved.


Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>