Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a file on another server
Message
De
14/03/2012 19:29:46
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
14/03/2012 19:24:41
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01538362
Message ID:
01538383
Vues:
21
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform