Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Executing PowerShell Scripts with IIS

Reply
 
Old 11-21-2008   #1 (permalink)
officer07


 
 

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 SpecsSystem Spec
Old 11-21-2008   #2 (permalink)
Jonathan Noble


 
 

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 SpecsSystem Spec
Old 11-21-2008   #3 (permalink)
Karl Mitschke


 
 

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
This is how I do it:
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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46