Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a file on another server
Message
From
15/03/2012 02:43:33
 
 
To
14/03/2012 16:20:56
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:
01538406
Views:
32
>Yesterday, I created a thread about executing a file, in this case schtasks.exe, to enable or disable a task from the Windows Scheduler. By putting Local System in the application pool, this was bypassing the ASP.NET restriction and was allowing the Web site to execute that process.
>
>However, one of the task that we need to handle is on another server. So, the Local System account cannot bypass the server's limit. Anyone would have an idea on what I should do to achieve this challenge?

Using LocalSystem for the application pool seems a bit of a drastic solution. You could use temporary impersonation or delegation only where required.

See http://msdn.microsoft.com/en-us/library/ff647404.aspx#paght000023_impersonatingusinglogonuser for an overview. (It also has a #C example of impersonation using LogonUser.)

If there is a user name and password on the remote machine that exactly matches the impersonating account then you should get the same permissions as that remote user.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform