一、PowerShell 7.4.4
方法一:GitHub安装msi(文件有点大,可能有点慢)
进入网站:https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x64.msi
或:
https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x86.msi
下载后打开文件,
一直点Next即可。
方法二:PowerShell命令(有可能不行)
先输入:
winget search Microsoft.PowerShell
如果输出:
Name Id Version Source
-----------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.4.4.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.5.0.3 winget
那么使用 id
参数安装 PowerShell:
winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget
二、PowerShell 7.5.0 - preview 3
方法一:GitHub安装msi(文件有点大,可能有点慢)
下载后打开文件,
一直点Next即可。