I am working on a project where I have to remotly connect to the task scheduler on various machines inside a domain. It works fine connecting to win7, win8, 2008sp2, 2008R2 and 2012. But with XP I have problems.
All machines (except XP) can be easily connected via
When I now use the following code I am more or less able to connect to xp and can create a task:
Do you have any experience using the wrapper to connect to XP (SP3)? Is there something I am doing wrong or did I miss something? Why I am not able to connect to XP using
p.s.: Sorry for so many words but it is hard to describe it shorter. And sorry for coming up with an XP problem ;-)
All machines (except XP) can be easily connected via
ts = new TaskService(aHostname, aUserName, aDomainName, aPwd);
With XP this doesnt work. The error message is always :The request is not supported. (Exception from HRESULT: 0x80070032)
By the way: The firewall on the XP machine is completly deactivated so the firewall doesn't matter.When I now use the following code I am more or less able to connect to xp and can create a task:
ts = new TaskService();
ts.TargetServer = aHostname;
This means: I am connecting to the Task Scheduler of the machine where my app is started and then set the target server to the hostname of the XP machine. But connecting to XP with this methode creates new problems: When I call ts.FindTask
with this connection I again get a "The request is not supported. (Exception from HRESULT: 0x80070032)".
Okay. The FindTask problem doesn't hurt me much. The tasks themselves on XP are also not started but I guess that doesn't have to do with the connection.Do you have any experience using the wrapper to connect to XP (SP3)? Is there something I am doing wrong or did I miss something? Why I am not able to connect to XP using
ts = new TaskService(aHostname, aUserName, aDomainName, aPwd);
Is it because of Task Scheduler v1.0?p.s.: Sorry for so many words but it is hard to describe it shorter. And sorry for coming up with an XP problem ;-)