CSharp执行PowerShell 脚本
作者:天楚 / 发布于2015/10/8/ 918
在C#中调用powershell脚本,需要引用的namespace如下: using System.Management; using System.Management.Automation; using System.Management.Automation.Runspaces; 添加System.Management.Automation.dll的引用,需要使用浏览,如果不知道位置,可以先在本机查找下。
评论列表