Search
“runspace”
More pages from the web
1–1 of 1-
asptutor2012.blogspot.com
ASP.NET
ASP.NET Monday, November 21, 2011 Running PowerShell script from C# To run the PowerShell scripts from C# add a reference to System.Management.Automation assembly and include the following namespaces using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Runspaces; private string RunScript(string scriptText) { Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open
