PowerShell ps = PowerShell.Create(); ps.AddCommamd("Get-NetIPInterface"); ps.AddParameter("AddressFamily", "IPV4"); ps.AddParameter("InterfaceAlias",nicname); ps.AddParameter("InterfaceMeyric", 9999); if(ps.Invoke().Count()>0) return 9999; else return 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)