【CSharp】
执行PowerShell 脚本
作者:天楚 / 发布于2015/10/8/ 919
在C#中调用powershell脚本,需要引用的namespace如下:
using System.Management;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
添加System.Management.Automation.dll的引用,需要使用浏览,如果不知道位置,可以先在本机查找下。
评论列表
- 本站所提供的代码,版权归原作者所有,若有侵犯作者版权,请与我们联系,我们将立即删除或修改。谢谢!
- 本站所有代码发布及提供者。