![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Executing PowerShell Scripts with IIS Hello, we would like to write a frontend website to manage some of our Exchange Server's administrative tasks (we manage Exchange Server 2007 via PowerShell and therefore we have a lot of PowerShell-Scripts already). Is there a possibility to execute these PowerShell-Scripts from a website running on IIS and how can we pass parameters (e.g. that have been put into a html form) on to the script upon execution and vice versa (how can we pass the script's output back to the website)? Any help or information, also regarding the language, in which we should at best program this website (ASP.NET 2.0? PHP?) would be very much appreciated! Thank you very much, officer07 |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Executing PowerShell Scripts with IIS You might want to look at PowerShellASP from http://powershelltoys.com which integrates with ASP.Net. Adam Smith has a post on his blog talking about how they're using PowerShell ASP to manage Exchange 2007 mailboxes at Yale: http://blogs.yale.edu/roller/page/as...=powershellasp |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Executing PowerShell Scripts with IIS Hello officer07, Quote: > Hello, > > we would like to write a frontend website to manage some of our > Exchange Server's administrative tasks (we manage Exchange Server 2007 > via PowerShell and therefore we have a lot of PowerShell-Scripts > already). > > Is there a possibility to execute these PowerShell-Scripts from a > website running on IIS and how can we pass parameters (e.g. that have > been put into a html form) on to the script upon execution and vice > versa (how can we pass the script's output back to the website)? > > Any help or information, also regarding the language, in which we > should at best program this website (ASP.NET 2.0? PHP?) would be very > much appreciated! > > Thank you very much, > officer07 http://www.powershellcommunity.org/F...c/Default.aspx And, here is some sample ASP code in C#: http://powershellcommunity.poshcode.org/505 http://powershellcommunity.poshcode.org/506 http://powershellcommunity.poshcode.org/507 http://powershellcommunity.poshcode.org/508 http://powershellcommunity.poshcode.org/509 http://powershellcommunity.poshcode.org/510 |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| executing scripts within a web browser control under the system ac | .NET General | |||
| executing powershell scripts on server | PowerShell | |||
| Executing batch files in PS scripts | PowerShell | |||
| executing scripts async on remote hosts | PowerShell | |||
| Executing scripts in the current directory | PowerShell | |||