Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Executing Powershell command from C#

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sudhi164

sudhi164

    Newbie

  • Member
  • 26 posts
  • Joined 18-March 09

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.


Regards,
Sudhir


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,640 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Hi,

I have an application ...

 

...and a broken google? :unsure:

http://blogs.msdn.co...pts-from-c.aspx

https://msdn.microso...9(v=vs.85).aspx

 

Is this what you are looking for?

 

jaclaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users