in

ASP.NET Weblogs

Tolga Koseoglu

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 Nov 06 2008, 11:21 PM by kemaltolga
Filed under: ,

Comments

 

Stefano Parini said:

I noticed that the error occurs using write-host

is it possible?

January 29, 2009 6:14 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About kemaltolga

Born in Ankara, Turkey. Raised in Germany. Recruited for the Track & Field Team at Texas A&M University in College Station, TX, in January 2000. NCAA champion in 2001 (Discus). Work for design firm in southern California. Married with two daughters.