当安装了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!)的 snapin 非常有用。
PowerShell ISE 有相应的替代品吗?
我尝试运行 powershell_ise.exe -version 2.0
,但这并没有起作用。
运行 powershell_ise.exe -help
并没有显示任何能满足我的需求的参数。