scripting - ASP.NET - running a bat script on another machine -


I would like to run a bat script on one of the machines on the domain from my ASP.NET application. The machine with a batch script is a temporary storage machine, and the script synchronizes it with a permanent storage machine. So, what is the optimal way to do this?

What I tried to do is to run a script on a remote machine. I make a process that calls a PsExec, and it actually does this work very well, however, when ASP.Net Worker Thread is run in ASP.NET account, which has restricted privileges I would have to work harder in my domain user credentials in PsExec calls, and I do not like doing something like this

Is there a way to overcome this problem, or maybe some other vision Angle do what I can try?

Thank you ...

You & lt; Can Impersonate Identity = "True" /> Your Web To set up the config, to run the application under IUSR, or you can set the username / password on the identity tag that you want to use to run the bat file.

I had some information here before:

But I'm sure a quick web search will find you more information on cloning.


Comments