Jump to content

Executing Powershell command from C#


Recommended Posts

Hi,

I have an application which is built on .net 2.0 framework. I am looking for command to execute powershell command from c#.
Ex: in Powershell command prompt, we need to type "Install-WindowsFeature XPS-viewer" to enable XPS viewer.

I am looking for C# code to do this. I don't want to use script file.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...