本文最后更新于 181 天前,其中的信息可能已经有所发展或是发生改变。
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows
https://learn.microsoft.com/zh-cn/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7
- 在 GitHub 下载最新版本(PowerShell-7.4.1-win-x64.msi)。
- 双击安装程序文件并按照提示操作。
PowerShell 7.4 将安装到
$env:ProgramFiles\PowerShell\<version>
并与 Windows PowerShell 5.1 并行运行。