ruby exec powershell windows
发布时间:2020-12-17 02:14:26 所属栏目:百科 来源:网络整理
导读:当我在 ruby中运行以下内容时: `powershell.exe -executionpolicy unrestricted -command get-module -listavailable` …我得到的结果不同于我只是运行cmd并执行: powershell.exe -executionpolicy unrestricted -command get-module -listavailable 我怎
当我在
ruby中运行以下内容时:
`powershell.exe -executionpolicy unrestricted -command get-module -listavailable` …我得到的结果不同于我只是运行cmd并执行: powershell.exe -executionpolicy unrestricted -command get-module -listavailable 我怎么能解决这个问题,所以我可以得到相同的结果? 解决方法
是.修复显然是sysnative别名.使用:
C:/windows/sysnative/windowspowshell/v1.0/powershell.exe 而不是syswow64或system32或没有. 有关详细信息,请参阅:http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |