Window7升级 PowerShell

一、查看当前PowerShell版本

1、命令行输入powershell

2、命令行输入get-host

Window7升级 PowerShell_第1张图片

二、下载新版PowerShell(下载说明:https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-windows-powershell?view=powershell-6)

1、5.1版本下载地址:https://www.microsoft.com/en-us/download/details.aspx?id=54616

Window7升级 PowerShell_第2张图片

三、安装新版PowerShell

1、解压安装文件后,双击如下.msu文件进行安装

2、异常处理

Window7升级 PowerShell_第3张图片

(1)将上步骤得到的.msu文件更改为.cab文件后,并将其解压到新文件件,如cab

Window7升级 PowerShell_第4张图片

(2)进行安装

Window7升级 PowerShell_第5张图片

命令行执行:dism /online /add-package /packagepath:"E:\install\PowerShell\cab\Windows6.1-KB3191566-x64.cab"

(3)安装成功后重启电脑,重启后再次查看PowerShell版本,发现已更新

Window7升级 PowerShell_第6张图片

你可能感兴趣的:(其他)