gpt4 book ai didi

powershell-3.0 - 使用2.0运行时启动PowerShell ISE

转载 作者:行者123 更新时间:2023-12-04 03:52:13 24 4
gpt4 key购买 nike

安装PowerShell 3.0后,我可以强制PowerShell开始使用2.0版

-Version
Starts the specified version of Windows PowerShell.
Enter a version number with the parameter, such as "-version 2.0"

这对于不支持.Net Framework V 4(SharePoint!)的管理单元很有用。

有等效于 PowerShell ISE 吗?

我试图运行 powershell_ise.exe -version 2.0,但这不起作用。

运行 powershell_ise.exe -help不会显示任何可以满足我需要的参数。

最佳答案

调整配置文件无济于事,powershell_ise.exe绝对取决于.Net V4。它还在很大程度上取决于PowerShell引擎的V3版本。

安装PowerShell V3后,没有支持的方法来运行PowerShell ISE的V2。与核心PowerShell二进制文件(例如System.Management.Automation.dll)不同,我认为V2 ISE二进制文件将作为V3安装的一部分被覆盖或删除。

恐怕您必须从powershell.exe运行脚本。

关于powershell-3.0 - 使用2.0运行时启动PowerShell ISE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18919862/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com