摘要: C#中运行PowerShell需要用到System.Management.Automation.dll。在Visual Studio中可以通过NuGet添加引用,package名字为“System.Management.Automation”。 Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); using ... 阅读全文
posted @ 2015-07-01 19:06 维博.WILBUR 阅读(1015) 评论(0) 推荐(0) 编辑