Getting Powershell to work in your asp.net application

First, the most important part is to add the System.Management.Automation.dll to your web application. Its location is a mystery...at least for me it was. HEre it is

"C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0"

Once you added this reference you are able to imports the following asseblies...

using System.Management.Automation;

using System.Management.Automation.Runspaces;

Now you are able to code your powershell "HelloWorld" asp.net web application. This is one...

Published Thursday, November 06, 2008 11:21 PM by kemaltolga
Filed under: ,

Comments

# re: Getting Powershell to work in your asp.net application

Thursday, January 29, 2009 6:14 AM by Stefano Parini

I noticed that the error occurs using write-host

is it possible?

Leave a Comment

(required) 
(required) 
(optional)
(required)