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

Updated Release: Release 2.2.1 (Sep 09, 2014)

$
0
0
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. Since 2.0.3 release, added support for .NET 2.0 and 4.0, security handling, version compatibility handling (for connecting to up or down-stream versions), bug fixes, enhancements to history control and event trigger editor, compensation for deprecated email and message actions on Win8, and improved performance and marshalling. See Source Code for full details of changes.

Download Descriptions
  • TaskScheduler.zip - Includes the base library (Microsoft.Win32.TaskScheduler.dll) with no UI code. Works with .NET 2.0 and higher. Separate assemblies for .NET 2.0 and 4.0. Add this assembly as a reference to interact with Task Scheduler on all systems with IE4 and later. This package is also available via NuGet with package name TaskScheduler.
  • TaskSchedulerEditor.zip - Includes the UI library (Microsoft.Win32.TaskSchedulerEditor.dll) with all supporting assemblies. Works with .NET 2.0 and higher. Separate assemblies for .NET 2.0 and 4.0. Add this assembly as a reference along with Microsoft.Win32.TaskScheduler.dll to get editor controls and dialogs that allow for viewing and editing tasks, triggers, actions, lists, etc. This package is also available via NuGet with package name TaskSchedulerEditor.
  • TaskSchedulerHelp.zip - Includes the Microsoft Help compatible help files for both the base and editor libraries. Extract all files and then run Install_TaskScheduler.bat to integrate the help.

Source code checked in, #91424

$
0
0
* Updated NuGet references and help file

Source code checked in, #91425

$
0
0
* Changed version to 2.2.2 * Fixed NuGet reference to wizard library * Fixed button rendering problem with TaskWizard

New Post: Last Run Result of any task

$
0
0
Hi,

I want to know the last run result of some of the tasks scheduled in windows scheduler. How can I get that information using this library?
I tried using "LastTaskResult" property of "Task" class but it is returning different integer values from which I am not able to figure the last run result of tasks.
Please respond to this thread.

Thanks in advance.

New Post: Last Run Result of any task

$
0
0
The only two properties that report on the results of the last execution of a task are LastRunTime and LastTaskResult. LastRunTime gives the time when the execution started and LastRunResult gives the exit code for the executable specified in the task's ExecAction that fired.

For a bunch more detail, you can create a TaskEventLog object for the task and iterate through the events fired by the task. However, depending on how your task reports its result, this may not give an answer either.

New Post: Subscribe to a local or remote TaskService?

$
0
0
Hi all!

First of all, I LOVE THIS CODE - it is saving my life in terms of being able to run programs on remote PCs using different credentials! :)

** Here's my question: is there a way to subscribe to a local or remote TaskService so that I get notifications when any TaskScheduler change occurs?

I'm currently showing all tasks in a DatGridView, and instead of a user needing to refresh the list, I would like to be able to do this only when my program gets notification of a change...

Any thoughts or ideas about this?

(and thanks in advance)! :)

*** After thinking about this more, maybe what I'm after is some kind of HOOK I can created that would let me know when TaskScheduler events or mothods are bing used\accessed?

New Post: Subscribe to a local or remote TaskService?

$
0
0
The only thing that would indicate a task has run is the event log on the computer running the task. You could actually create another task that runs an executable or COM server that fires when a completion event is posted for the task you are wanting to get a notification from. You would use an EventTrigger and set the subscription value to the following (replacing the name of the task reference with your's):
<QueryList>
  <Query Id="0" Path="Microsoft-Windows-TaskScheduler/Operational">
    <Select Path="Microsoft-Windows-TaskScheduler/Operational">
    *[
        System
        [
            Provider[@Name='Microsoft-Windows-TaskScheduler'] 
            and (Level=4)
            and (EventID=201)
        ]       
    ]
    and
    *[
        EventData
        [
            Data
            [
                @Name='TaskName'
            ]='\Full task path of task to track'
        ]
    ]    
    </Select>
  </Query>
</QueryList>

Source code checked in, #91447

$
0
0
* Fixed problem with TaskEvent queries failing with various options

New Post: Changing schedule through UI library

$
0
0
Hi,

I am trying to change schedule of any task by using UI library but it is not working as expected. It changes the time available in settings sections of Edit trigger but it does not change "for a duration of: "in advanced settings section of edit trigger. Please help on this issue.

Thanks in advance.

New Post: Changing schedule through UI library

New Post: Changing schedule through UI library

$
0
0
Hi,

Thanks for quick reply. I am opening dialog using "TaskEditDialog" from my code. When I open edit trigger from the opened dialog then it is not saving "for a duration of: " setting in advanced settings section of trigger. Please help to resolve the issue.

Thanks in advance.

New Post: Changing schedule through UI library

Source code checked in, #91502

$
0
0
* Updated event filter editor to allow for task specific items to be included

New Post: Changing schedule through UI library

$
0
0
Hi,

It is working fine with all values in drop down "for a duration of: " except for "Indefinitely". When I am selecting "Indefinitely" then some how it is not able to maintain the value. Could you please suggest if I am missing some property?

Thanks in advance.

Created Unassigned: Remote windows server 2003 Task scheduling access [11880]

$
0
0
hi,

when i tried to connect a remote server(windows 2003) using the line,

Microsoft.Win32.TaskScheduler.TaskService _taskservice = new Microsoft.Win32.TaskScheduler.TaskService(servername, username, domain, Password);

it is throwing multiple errors like "The request is not supported. (Exception from HRESULT: 0x80070032)" and sometimes with the code 0x80070006

is it possible to connect to windows server 2003 through Microsoft.win32.taskscheduler? because 2003 server doesnt have GUI for Task Scheduler.

can anyone please help me on this..

Commented Unassigned: Remote windows server 2003 Task scheduling access [11880]

$
0
0
hi,

when i tried to connect a remote server(windows 2003) using the line,

Microsoft.Win32.TaskScheduler.TaskService _taskservice = new Microsoft.Win32.TaskScheduler.TaskService(servername, username, domain, Password);

it is throwing multiple errors like "The request is not supported. (Exception from HRESULT: 0x80070032)" and sometimes with the code 0x80070006

is it possible to connect to windows server 2003 through Microsoft.win32.taskscheduler? because 2003 server doesnt have GUI for Task Scheduler.

can anyone please help me on this..
Comments: ** Comment from web user: dahall **

Please look at the documentation here (https://taskscheduler.codeplex.com/wikipage?title=TaskSecurity&referringTitle=Documentation#remote) for information on the security considerations for connecting to 2003 servers at the bottom.

New Post: Changing schedule through UI library

$
0
0
I have done this on Windows 8.1, XP and 7 without a problem. In my code, I'm setting the RegisterTaskOnAccept property of the TaskEditDialog to true and have a DailyTrigger that can set and unset the Trigger.Repetition.Duration to any value, including TimeSpan.Zero (Indefinitely), over and over using the UI. Will you post the code you are using to create the initial task and call the TaskEditDialog? I think it may be something with how you are calling the library.

Source code checked in, #91514

$
0
0
* Fixed PowerShell translation in Win8 for email actions * Updated EmailAction UI editing

Source code checked in, #91517

$
0
0
* Fixed trigger repetition string output problem

Source code checked in, #91560

$
0
0
* More updates to PowerShell conversions * Fixed selection bug in ActionEditDialog * Changed visibility of internal dialogs to private
Viewing all 2206 articles
Browse latest View live


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