sudhi164 Posted July 1, 2015 Share Posted July 1, 2015 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 More sharing options...
jaclaz Posted July 1, 2015 Share Posted July 1, 2015 Hi,I have an application ... ...and a broken google? http://blogs.msdn.com/b/kebab/archive/2014/04/28/executing-powershell-scripts-from-c.aspxhttps://msdn.microsoft.com/en-us/library/dd182449(v=vs.85).aspx Is this what you are looking for? jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now