This project has moved. For the latest updates, please go here.

RunEx

Mar 15, 2016 at 7:02 PM
Edited Mar 15, 2016 at 7:03 PM
Following results in:
The security ID structure is invalid. (Exception from HRESULT: 0x80070539)
using (TaskService ts = new TaskService(serverName, userName, domain, password, false))
{
ts.GetTask(taskFullPath).RunEx(TaskRunFlags.UserSID, 0, runAs);
};
Coordinator
Mar 16, 2016 at 3:13 PM
I believe this is a bug in the library. What happens if you pass an empty string into the parameter list?
RunEx(TaskRunFlags.UserSID, 0, runAs, "");
This may work around the issue until I can correct, test and update the code.
Coordinator
Apr 29, 2016 at 6:07 PM
Fixed in version 2.5.17
Marked as answer by dahall on 4/29/2016 at 10:07 AM
May 3, 2016 at 7:43 PM
Perfect, thanks! :)