Windows安装Powershell7.x

发布时间 2023-12-01 12:52:04作者: 小小先生好无情
事件起因:
  由于需要运行一个脚本,但是该脚本是广大网友群众使用Powershell7写的,我自带的是Powershell5,运行过程中总是出现莫名其妙的问题,于是决定将Powershell升级到Powershell7.4.0
 
解决办法:
  1、首先确认当前系统自带的 Powershell 的版本 : $PsVersionTable.PSVersion
  2、下载安装 PowerShell-7.4.0-win-x64.msi 的安装包,下载链接:                   https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/PowerShell-7.4.0-win-x64.msi
  3、 然后一路下一步等待安装完成即可。
 
 
 
详细教程参考官方文档:
https://learn.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#installing-the-msi-package