Windows Server 2012R2升级PowerShell4为PowerShell5

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下载:

我们是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升级成5.1

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容