Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a file on another server
Message
From
14/03/2012 19:29:46
 
 
To
14/03/2012 19:24:41
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01538362
Message ID:
01538383
Views:
22
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform