sudhi164 Posted July 1, 2015 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.
jaclaz Posted July 1, 2015 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now