This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
I use Microsoft.Win32.TaskScheduler for creating new Task in Windows Scheduler. Code like this: using (TaskService ts = new TaskService()) { // ... ts.RootFolder.RegisterTaskDefinition( taskName, td, TaskCreation.Create, userId, password, TaskLogonType.Password); } My problem that I cant detect situation when userId has no rights for batch logon. In Windows API this situation [...] read more