>>I don't know about IIS or its application pool, but I suspect MS purposely makes what you're trying to do hard or impossible, as it would be a potentially very serious security hole.
>>
>>Can you call a separate EXE from your application pool, using RUNAS to get elevated privileges? It sounds like to run SchTasks with an RPC call requires local admin privileges as well as privileges on the remote computer.
>
>Yes, this is why I say that the only way I think this could work is to have a domain account in the application pool with the required privileges. Or, in the same way as a network share, if the username and password is the same on both servers, maybe that could work. But, as far as I can tell, I believe this is already the case. And, the IIS application pool was not strong enough to recognize that and enable/disable the task on the other server.
The way I read it, it should work. If you're already running SchTasks with local elevated privileges via the Local System account, you should be able to provide the required user name and password for the remote server as parameters to the SchTasks command (per the Wiki article I linked earlier).
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up