New Post: Saving a Task
Yes, use the Task.Export method to write out the file and then use the TaskFolder.ImportTask method to bring it back in.
View ArticleNew Post: Converting TaskDefinition to work with Server 2003 R2
Yes. Disallow the addition of any trigger and action types not supported under V1 and then don't tell it to RegisterTaskOnFinish. Once the wizard is complete, you will have a TaskDefinition. Set its...
View ArticleReleased: .NET ITaskHandler Implementation (Nov 30, 2012)
If you want to use the COMHandlerAction action to run code in a startable in-process library, you have to implement the ITaskHandler interface. There are some interesting tricks to making this work....
View ArticleUpdated Release: .NET ITaskHandler Implementation (Nov 30, 2012)
If you want to use the COMHandlerAction action to run code in a startable in-process library, you have to implement the ITaskHandler interface. There are some interesting tricks to making this work....
View ArticleSource code checked in, #81597
* Additional work on MMC mock-up. Collapsible panels and menu items working.
View ArticleNew Post: Do not store password
Hello.How can I set up "Run whether user is logged on or not" and "Do not store password" options for a task programmaticaly?I know if I don't set TASK_FLAG_RUN_ONLY_IF_LOGGED_ON flag then "Run whether...
View ArticleNew Post: COMException connecting to Windows 2012 Task Scheduler remotely
The property accessor task.Definition is throwing the exception:System.Runtime.InteropServices.COMException (0x80041318): The task XML contains a value which is incorrectly formatted or out of range....
View ArticleNew Post: Do not store password
"Run only when user is logged on", when checked, sets the TaskLogonToken to InteractiveToken. When "Run wheter user is logged on or not" is checked, if "Do not store password" is checked, it is set to...
View ArticleNew Post: Saving a Task
I guess I worded the question wrong. I want to save the Task object to a file while the code is running. When I try to save using the TaskSchedulerWizard object, I get an error because the Task...
View ArticleNew Post: Saving a Task
TaskDefinition has an Xml property which can be saved to a file and then used by the TaskFolder.ImportTask method to import and register or it can be brought into a string and used to set the same Xml...
View ArticleNew Post: Problem with accessing Administrator task
Hello everyone,I am getting UnauthorizedAccessException in following scenario in my application:Login with a user account which is a part of Administrator group Launch application by right clicking and...
View ArticleNew Post: Converting TaskDefinition to work with Server 2003 R2
When I do this I get a null error onV1Interop.TaskFlags flags = definition.v1Task.GetFlags();
View ArticleNew Post: Converting TaskDefinition to work with Server 2003 R2
Try creating the TaskService with the forceV1 parameter set to true and pass this into the TaskSchedulerWizard.Initialize() method. Then don't change the Settings.Compatibility property.
View ArticleNew Post: Daily Trigger with weekdays set
Hi All, I have been trying to create a daily trigger with week days set in it, but I couldn't find an example or a way to do it. something like following: td.Triggers.Add(new DailyTrigger...
View ArticleNew Post: Converting TaskDefinition to work with Server 2003 R2
Here is how I am trying to convert it, still gives me a Null error: TaskService ts = new TaskService(txtServerName.Text, logon[1], logon[0], logon[2],...
View ArticleNew Post: Daily Trigger with weekdays set
I think you are looking instead for a WeeklyTrigger. The following code will run the action every week on weekdays at the specified time.td.Triggers.Add(new WeeklyTrigger(DaysOfTheWeek.Monday |...
View ArticleNew Post: Converting TaskDefinition to work with Server 2003 R2
You only need the following:TaskService ts = new TaskService(txtServerName.Text, logon[1], logon[0], logon[2], true); TaskSchedulerWizard tempEditorForm = new TaskSchedulerWizard(ts);if...
View ArticleNew Post: Daily Trigger with weekdays set
Hi dahall,Thanks for your reply, No, I am not looking for weekly trigger. Though I had created a weekly trigger to work around my problem. I am specifically looking for a daily trigger within which I...
View ArticleNew Post: Daily Trigger with weekdays set
I think if you look at the Task Scheduler system app, you will see that the weekly trigger (WeeklyTrigger) and the monthly days trigger (MonthlyDOWTrigger) are the only ones that support the specifying...
View ArticleNew Post: Problem with accessing Administrator task
In your scenario, the task is being created under different privileges. I believe the Window's Task Scheduler application always runs as Administrator. To ensure that your application behaves the same,...
View Article