如何在windows上升级Powershell到5.1版本?

前言

此篇我们说的是Powershell5.1低版本到5.1的升级,对于Powershell6(及以上版本)可以跨平台独立安装,在windows上可与之前的版本并存。

首先要整清楚Powershell是Windows Management Framework的一部分,升级Powershell就需要升级WMF.

什么是WMF?

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/wmf/overview?view=powershell-7

Windows Management Framework (WMF) provides a consistent management interface for Windows.
WMF provides a seamless way to manage various versions of Windows client and Windows Server.
WMF installer packages contain updates to management functionality and are available for older versions of Windows. WMF installation adds and/or updates the following features: Windows PowerShell Windows PowerShell Desired State Configuration (DSC) Windows PowerShell Integrated Script Environment (ISE) Windows Remote Management (WinRM) Windows Management Instrumentation (WMI) Windows PowerShell Web Services (Management OData IIS Extension) Software Inventory Logging (SIL) Server Manager CIM Provider

Required

下载最新的W升级之前,请先把.NET Framework升到4.5.2(或以上)

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/wmf/setup/install-configure?view=powershell-7

如何升级WMF?

下载最新的WMF 5.1,下载地址:

https://www.microsoft.com/en-us/download/details.aspx?id=54616

当然顺带看看看看changlog,在这里:https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/wmf/whats-new/release-notes?view=powershell-7#wmf-51-changes

升级之后验证

打开Powershell,输入$PSTableVersion即可查看。

 

posted @ 2020-10-14 16:09  talentzemin  阅读(2618)  评论(0编辑  收藏  举报