Run PowerShell script from ASP.NET
问题 I have been trying out running a PowerShell script from asp.net with no success for a few days already. The C# is: using (var process = new Process()) { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"powershell.exe"; startInfo.Arguments = "arguments that call the script here"; startInfo.RedirectStandardOutput = false; startInfo.RedirectStandardError = false; startInfo.UseShellExecute = true; startInfo.CreateNoWindow = true; process.StartInfo = startInfo; process