PowerShell ps = PowerShell.Create(); ps.AddCommand("Set-NetIPInterface -InterfaceIndex 11 -InterfaceMetric 99"); try { ps.invoke(); } catch(Exception e) { MessageBox.Show(e.Message+""); }
using (PowerShell PowerShellInstance = PowerShell.Create()) { // ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)