Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a file on another server
Message
From
14/03/2012 19:18:46
 
 
To
14/03/2012 19:09:55
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:
01538380
Views:
29
>>Apparently SchTasks can schedule jobs on a remote computer: http://en.wikipedia.org/wiki/Schtasks#Usage
>>
>>For that syntax, it looks like you need to provide credentials (user name/password) for an account that is a local admin on that computer.
>>
>>For testing purposes, if you are running on a domain, you could try the domain admin user name/password.
>
>The fact is that this is running from the Web. And, from the Web, the account is under the application pool. That account does not have any right on the other server. And, this is not running under a domain. So, I cannot put a domain's account in the application pool.

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.
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