Search code examples
asp.netasp.net-mvc-2

MVC2 Model callout to powershell


Recently created a MVC2 Portal but now I want to add a couple of models that call out to other processes such as powershell in order to run some tasks for the user and return the results.

All the examples I've found show the MVC model binding to SQL so the question is can MVC be used for what I'm asking of it and if so does anyone know of some examples that I can look at etc.

Any suggestions or comments are appreciated.


Solution

  • Closed due to lack of response, will look at doing a custom model which talks to powershell runspace.