Reply to this topicStart new topic
Task Scheduler Managed Wrapper
Thema
MagicAndre1981
Beitrag 06.03.2012, 18:01
Beitrag #1


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





ZITAT
his project provides a single assembly wrapper for the 1.0 and 2.0 versions of Task Scheduler found in all Microsoft operating systems post Windows 98. It simplifies the coding, aggregates the multiple versions, provides an editor and allows for localization support.

Microsoft introduced version 2.0 (internally version 1.2) with a completely new object model with Windows Vista. The managed assembly closely resembles the new object model, but allows the 1.0 (internally version 1.1) COM objects to be manipulated. It will automatically choose the most recent version of the library found on the host system. The project was written in C#, but works with any .NET language including scripting languages.

There is a help file included with the download that provides an overview of the various classes. Below is a brief example of how to use the library from C#.

QUELLTEXT
using System;
using Microsoft.Win32.TaskScheduler;

class Program
{
   static void Main(string[] args)
   {
      // Get the service on the local machine
      using (TaskService ts = new TaskService())
      {
         // Create a new task definition and assign properties
         TaskDefinition td = ts.NewTask();
         td.RegistrationInfo.Description = "Does something";

         // Create a trigger that will fire the task at this time every other day
         td.Triggers.Add(new DailyTrigger { DaysInterval = 2 });

         // Create an action that will launch Notepad whenever the trigger fires
         td.Actions.Add(new ExecAction("notepad.exe", "c:\\test.log", null));

         // Register the task in the root folder
         ts.RootFolder.RegisterTaskDefinition(@"Test", td);

         // Remove the task we just created
         ts.RootFolder.DeleteTask("Test");
      }
   }
}


Release 1.8.1
Releasenotes + Download:
http://taskscheduler.codeplex.com/releases/view/83241


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 19.05.2012, 18:43
Beitrag #2


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.8.2

ZITAT
Release Notes
Many bug fixes and better localization support (adding Chinese) since the 1.7.1 release. See Source Code for full details of changes. Also, all assemblies are now strongly named.


Download:
http://taskscheduler.codeplex.com/releases/view/83241


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 03.07.2012, 21:09
Beitrag #3


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.8.3

ZITAT
Release Notes
Many bug fixes, better localization support (adding Chinese), and Task Scheduler 1.0 support for XML since the 1.7.1 release.

Potentially Breaking Changes
There is a remote chance that some of the changes in this release may break your code. Please check if you have code that:

Makes specific assumptions about the underlying Kind (Utc, Local) of DateTime values for Trigger.StartBoundary and Trigger.EndBoundary.
Provides username, domain and password for connecting to remote servers. You must have all three as non-null, valid strings or all null.
V1 only: Assumes Task.State property does not provide the dynamic state of the task
V1 only: Assumes Task.Enabled property does not take effect until re-registering the task.
(1.8.2) Task.NextRunTime. For Task Scheduler 2.0, the return value was Dec 30, 1899 if there were no future run times. For 1.0, that value would have been DateTime.MinValue. Now all versions will return DateTime.MinValue if there are no future run times. While this is different from the native 2.0 library, it was deemed more appropriate to have consistency between the two libraries and with other .NET libraries.
(1.8.3) A number of the properties and methods related to reading and writing Xml that once threw NotV1SupportedException will now process the Xml.


Download:
http://taskscheduler.codeplex.com/releases/view/83241


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 18.09.2012, 19:11
Beitrag #4


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.9 Beta

ZITAT
Release Notes

Many bug fixes, full support for Windows 7 and Windows 8 additions to core library, and an enhanced editor to allow editing of all properties, since the 18.3 release. See Source Code for full details of changes.


Download:
http://taskscheduler.codeplex.com/releases/view/94616


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 30.10.2012, 19:13
Beitrag #5


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.9

ZITAT
Release Notes

* Fixed problem with warnings having title and message strings mixed
* Fixed problem with account validation when Principal.ProcessTokenSidType
* Hid new tabs by default


Download:
http://taskscheduler.codeplex.com/releases/view/94616


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 30.11.2012, 20:14
Beitrag #6


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.9.2

ZITAT
Release Notes
Many bug fixes, full support for Windows 7 and Windows 8 additions to core library, and an enhanced editor to allow editing of all properties, since the 1.8.3 release. See Source Code for full details of changes.


Download:
http://taskscheduler.codeplex.com/releases/view/94616


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 11.02.2013, 19:53
Beitrag #7


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.9.3

Download:
http://taskscheduler.codeplex.com/releases/view/94616
http://nuget.org/List/Packages/TaskScheduler


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 21.03.2013, 19:09
Beitrag #8


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 1.9.4

Download:
http://taskscheduler.codeplex.com/releases/view/94616
http://nuget.org/List/Packages/TaskScheduler


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 13.08.2013, 16:08
Beitrag #9


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.0 Beta

ZITAT
Release Notes
Some bug fixes, better support for Windows 8 additions to core library, addition of Fluent syntax, and crontab syntax, since the 1.9.4 release.


Download:
http://taskscheduler.codeplex.com/releases/view/110719


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 11.09.2013, 15:52
Beitrag #10


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





So nun gibt es die finale Version der Bibliothek:


Release 2.0

ZITAT
Release Notes
Some bug fixes, better support for Windows 8 additions to core library, addition of Fluent syntax, and crontab syntax, since the 1.9.4 release.


Download:
https://taskscheduler.codeplex.com/releases/view/110719


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 08.01.2014, 05:52
Beitrag #11


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.0.3

ZITAT
- Updated version to 2.0.3 to compensate for being a dolt and updating the NuGet package out of sync

- Updated version to 2.0.1
- Added additional error handling to Task.GetRunTimes method
- Added ToString implementations for some classes to help with debugging
- Fixed problem under Windows 8 and 8.1 where MaintenanceSettings were being set even if not needed. This was causing errors when registering newly created tasks.


Download:
https://taskscheduler.codeplex.com/releases/view/110719


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 10.04.2014, 04:40
Beitrag #12


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.1.0

ZITAT
Release Notes
Some bug fixes, better support for Windows 8 additions to core library, addition of Fluent syntax, and crontab syntax, since the 1.9.4 release.


Download:
https://taskscheduler.codeplex.com/releases/view/120747


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 18.04.2014, 12:04
Beitrag #13


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.1.1

ZITAT
- Performance improvements
- Remove SecurityEditor

- Bug fixes:
- Exceptions causing delay in Task.GetRunTimes
- TaskPrincipal.Run level default mismatch for V2 (default is always LUA now)
- TaskService now supports serialization properly, Equals and GetHashCode methods
- TaskService was failing if TargetServer was set to String.Empty
- TaskPropertiesControl child control enabling was inconsistent
- TaskListView speed and security enhanced
- Fixed problem with null for TaskListView.ContextMenuStrip


Download:
https://taskscheduler.codeplex.com/releases/view/120747


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 05.05.2014, 04:42
Beitrag #14


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.2.0

ZITAT
* Paritial fix for TaskWizardDialog problem
* Fixed exception and no results from NextRunTimes
* Fixed dropdown exception on XP for TaskPropertiesControl
* Fixed grouping on TaskHistoryControl
* Updated help system
* More work on TaskHistoryControl's ListView (sorting and grouping)
* Added ability to show editors for triggers and actions in TaskSchedulerWizard even if no selector is used
* Work on TaskHistoryControl
* Extracted EventTrigger UI elements into a user control and exposed to TriggerEditDialog and TaskSchedulerWizard
* Added functionality to EventTrigger UI
* Added ability to maintain EmailAction and ShowMessageAction under Win8 where they have been deprecated (converts to powershell script and uses ExecAction)
* Added ability to convert EmailAction and ShowMessageAction to XML
* Updated TaskRights enum with best guesses
* Added Task.Folder and TaskFolder.Parent properties to get the parent instance for each
* Performance improvements
- Bug fixes:
- Exceptions causing delay in Task.GetRunTimes
- TaskPrincipal.Run level default mismatch for V2 (default is always LUA now)
- TaskService now supports serialization properly, Equals and GetHashCode methods
- TaskService was failing if TargetServer was set to String.Empty
- TaskPropertiesControl child control enabling was inconsistent
- TaskListView speed and security enhanced
- Fixed problem with null for TaskListView.ContextMenuStrip
* Updates to TaskSecurity to work with .NET 2.0
* Updated interop code to use mashaling for arrays
* Added V1 task name check on registration to make sure it does not include invalid file name characters and does not end in a period followed by three or fewer characters


Download:
https://taskscheduler.codeplex.com/releases/view/120747


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 11.09.2014, 15:42
Beitrag #15


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.2.1

ZITAT
* Lots of documentation updates
* Added editor for EventTrigger subscription queries and associated support methods and controls
* Moved task event handling code to TaskScheduler project
* Added ability to search by Id for Actions and Triggers
* Added Add method to create an ExecAction directly from Actions collection
* Fixed problem enumerating V1 tasks that have periods in the name
* Updated to version 2.2.1
* Corrected problem with task enumeration under V1
* Added XML support to NamedValues
* Added AllTasks enumeration property to TaskService and TaskFolder


Download:
http://taskscheduler.codeplex.com/releases/view/120747


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post
MagicAndre1981
Beitrag 26.09.2014, 15:41
Beitrag #16


xperf Junkie
Gruppensymbol

Gruppe: Administrator
Beiträge: 28.445
Beigetreten: 18.09.2006





Release 2.2.2

ZITAT
* More updates to PowerShell conversions
* Fixed selection bug in ActionEditDialog
* Changed visibility of internal dialogs to private
* Fixed trigger repetition string output problem
* Fixed PowerShell translation in Win8 for email actions
* Updated EmailAction UI editing
* Updated event filter editor to allow for task specific items to be included
* Fixed problem with TaskEvent queries failing with various options
* Changed version to 2.2.2
* Fixed NuGet reference to wizard library
* Fixed button rendering problem with TaskWizard
* Updated NuGet references and help file


Download:
https://taskscheduler.codeplex.com/releases/view/120747


--------------------
"A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Vereinfachte Darstellung Aktuelles Datum: 25.10.2014, 13:35