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

Task Scheduler connecting XP (SP3)

Topics: Errors
Sep 30, 2014 at 9:16 AM
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
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
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 ;-)
Oct 1, 2014 at 12:22 PM
XP requires that the firewall on both client and server allows the Task Scheduler to pass through. It also requires file and print sharing enabled on the XP box and that the permissions on the \Windows\Tasks folder allow access to the account specified in the TaskService constructor.