New Post: Two Bugs...
For example...Dim taskServiceObject As New TaskScheduler.TaskService() Dim taskObject As TaskScheduler.Task = taskServiceObject.GetTask("my task") If taskObject IsNot Nothing Then If...
View ArticleNew Post: why scheduled task do not run when time is reached
i find that the error log now, it is due to battery in notebook, need to use AC power supply
View ArticleNew Post: Error creating an event driven task
I am trying to programmatically create a scheduled task that is based on a network connection event. I am working from a XML export from a working task. Everything seems to be OK except I get variants...
View ArticleNew Post: Can TSMW trigger a program statement in my application?
I am developing a scheduler application in C#. It reads a collection of user settable clock controls that specify hr.min.sec. When the system clock matches one of these timers I would like to execute a...
View ArticleNew Post: Error creating an event driven task
Here's a line from my test code that works:eTrigger.Subscription = "<QueryList><Query Id=\"0\" Path=\"Security\"><Select Path=\"Security\">*[System[Provider[@Name='VSSAudit'] and...
View ArticleNew Post: Can TSMW trigger a program statement in my application?
There is an action, ComHandlerAction that calls a COM interface. You could build it into your program's executable and then register it as a COM server. Another trick is to have your program take an...
View ArticleNew Post: Log non impersonated user
Task history is controlled by the native scheduler. I know no way of manipulating how or what it puts into the event log.
View ArticleNew Post: Two Bugs...
And another bug...The exception occurred at Microsoft.Win32.TaskScheduler.V2Interop.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object...
View ArticleNew Post: Two Bugs...
Windows 10 is the OS that some of these people are having issues on.
View ArticleCreated Unassigned: Feature Request: documentation in PDF file [12414]
Hello. Today I spent some time trying to make Visual Studio Documentation working without any success. I needed detailed description of the interfaces, so I had to reverseengineer the source code of...
View ArticleNew Post: Two Bugs...
My guess is that neither one of these are bugs, they expose limitations of the library. ITaskFolder.RegisterTaskDefinition is a picky method in the native library. This wrapper does all it can to...
View ArticleNew Post: Two Bugs...
Yeah well, I figured out a way around the issue. I just delete the task and recreate it from scratch instead of trying to modify an existing task.
View ArticleClosed Unassigned: Feature Request: documentation in PDF file [12414]
Hello. Today I spent some time trying to make Visual Studio Documentation working without any success. I needed detailed description of the interfaces, so I had to reverseengineer the source code of...
View ArticleNew Post: HRESULT: 0x8007007E
Retrieving the COM class factory for component with CLSID {0F87369F-A4E5-4CFC-BD3E-73E6154572DD} failed due to the following error: 8007007e The specified module could not be found. (Exception from...
View ArticleNew Post: HRESULT: 0x8007007E
That's a strange one. My only guess is that the registration of the COM server that host the native scheduler somehow broke. I have no idea on how to correct that other than rebuilding the system.
View ArticleNew Post: Is there a way to find the logged in user's "domain\name" when...
I have scoured the internet and there are suggestions that work for certain scenarios, but none work for me. I'm creating a task in a custom action inside the installer. The installer runs as SYSTEM,...
View ArticleNew Post: Is there a way to find the logged in user's "domain\name" when...
Thanks I have found the answer in this board! Just use: ts.RootFolder.RegisterTaskDefinition("MyTask", td, TaskCreation.CreateOrUpdate, "SYSTEM", null, TaskLogonType.ServiceAccount);
View ArticleNew Post: HRESULT: 0x8007007E
Just a wild guess, run this in PowerShell(as admin):mofcomp ([Environment]::GetFolderPath("System") + "\wbem\SchedProv.mof") you may need to run this first: set-executionpolicy remotesigned
View ArticleNew Post: Is there a way to find the logged in user's "domain\name" when...
That did create the task but then ran the process launched by the task as SYSTEM, not user. So I was back to square 1! Here's the way to get the username during install as a...
View Article