
Windows Server 2012R2默认PowerShell版本是4,检查命令:$PSVersionTable
其中PSVersion为当前版本号
升级的话,需要先安装Widows Management Framework (WMF),
WMF5.1介绍:
https://learn.microsoft.com/zh-cn/powershell/scripting/windows-powershell/wmf-overview?view=powershell-7.4
WMF5.1下载:
通过网盘分享的文件:WMF5.1-Win2012R2-KB3191564-x64.msu
链接: https://pan.baidu.com/s/1OtRoM694x0BamKecTmkA-A?pwd=1000 提取码: 1000
我们是WIN2012R2系统 下载Win8.1AndW2K12R2-KB3191564-x64.msu安装即可,安装后需重启服务器
下载PowerShell 7安装:
https://learn.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4
下载msi格式的安装
通过网盘分享的文件:PowerShell-7.4.6-win-x64.msi
链接: https://pan.baidu.com/s/1KRrzitU8Ltf4x2bBud6eVA?pwd=1000 提取码: 1000
完成后实际上PowerShell升级成5.1














这一切,似未曾拥有