PowerShell 支持生命周期PowerShell Support Lifecycle

PowerShell 是独特的工具和组件集,该集从 Windows PowerShell 单独传输、安装和配置。PowerShell is a distinct set of tools and components that is shipped, installed, and configured separately from Windows PowerShell. PowerShell 不包含在 Windows 许可协议中。PowerShell isn't included in the Windows licensing agreements.

PowerShell 受传统 Microsoft 支持协议的支持,包括付费支持Microsoft 企业协议Microsoft 软件保障PowerShell is supported under traditional Microsoft support agreements, including paid support, Microsoft Enterprise Agreements, and Microsoft Software Assurance. 还可通过针对相应问题填写支持请求,从而付费获取有关 PowerShell 的辅助支持You can also pay for assisted support for PowerShell by filing a support request for your problem.

社区支持Community Support

我们还在 GitHub 上提供社区支持,你可在其中提交问题、bug 或功能请求。We also offer community support on GitHub where you can file an issue, bug, or feature request. 此外,你还可以从 Microsoft PowerShell 技术社区PowerShell 中心页的社区部分列出的任何论坛中获得社区其他成员的帮助。Also, you may find help from other members of the community in the Microsoft PowerShell Tech Community or any of the forums listed in the community section of PowerShell hub page. 我们不能确保社区能够及时解决问题。We offer no guarantee there that the community will address or resolve your issue in a timely manner. 如果问题需要立即解决,应使用传统的付费支持选项。If you have a problem that requires immediate attention, you should use the traditional, paid support options.

PowerShell 7 生命周期Lifecycle of PowerShell 7

发布 PowerShell 7 后,PowerShell 继续受 Microsoft 新式生命周期策略支持,但支持日期链接到 .NET Core 的支持生命周期With the release of PowerShell 7, PowerShell continues to be supported under the Microsoft Modern Lifecycle Policy, but support dates are linked to .NET Core's support lifecycle. 在此服务方法中,客户可以选择长期支持 (LTS) 版本或当前版本。In this servicing approach, customers can choose Long Term Support (LTS) releases or Current releases. PowerShell 7.0 是一个 LTS 版本。PowerShell 7.0 is an LTS release. 结束对 .NET Core 3.1 的支持。Support ends with the support of .NET Core 3.1. 下一版 LTS 遵循下一版 .NET Core LTS。The next LTS release follows the next .NET Core LTS release. 要了解支持的当前结束日期,请参阅 PowerShell 版本生命周期结束表See the PowerShell releases end of life table for current ending support dates. LTS 版本更新仅包含关键安全和服务更新,以及旨在避免或最大程度地减小对现有工作负荷的影响的修补程序。LTS release updates only contain critical security and servicing updates and fixes that are designed to avoid or minimize impact to existing workloads.

当前版本是在 LTS 版本之间出现的版本。A Current release is a release that occurs between LTS releases. 当前版本可以包含关键修补程序、创新和新功能。Current releases can contain critical fixes, innovations, and new features. 当前版本在后续的当前版本或 LTS 版本发布后的三个月内受支持。A Current release is supported for three months after the next Current or LTS release.

重要

必须安装最新的修补程序更新才能获得支持。You must have the latest patch update installed to qualify for support. 例如,如果你运行的是 PowerShell 7.0,并且已发布 7.0.1,则必须更新到 7.0.1 才能获得支持。For example, if you're running PowerShell 7.0 and 7.0.1 has been released, you must update to 7.0.1 to qualify for support.

PowerShell Core 6.x 生命周期Lifecycle of PowerShell Core 6.x

PowerShell Core 使用 Microsoft 新式生命周期策略PowerShell Core used the Microsoft Modern Lifecycle Policy. 此支持生命周期旨在使客户随时知悉最新版本。This support lifecycle is intended to keep customers up-to-date with the latest versions.

PowerShell Core 的版本 6.x 分支(例如 6.0、6.1、6.2 等)大约每六个月更新一次。The version 6.x branch of PowerShell Core was updated approximately once every six months (examples: 6.0, 6.1, 6.2, etc.). 但是,在发布 PowerShell 7 后,不会再有 6.x 的次要版本。However, with the release of PowerShell 7, there won't be anymore minor version releases releases of 6.x. PowerShell 6.2.x 仍受支持时将继续接收服务更新。PowerShell 6.2.x will continue to receive servicing updates while still supported.

重要

必须在每个新次要版本发布后的六个月时间之内进行更新,然后方可继续获取支持。You must update within six months after each new minor version release to continue receiving support.

例如,如果 PowerShell Core 6.1 发布于 2018 年 7 月 1 日,则应在 2019 年 1 月 1 日前更新到 PowerShell Core 6.1,更新后方可继续获取支持。For example, if PowerShell Core 6.1 is released on July 1, 2018, you would be expected to update to PowerShell Core 6.1 by January 1, 2019 to maintain support.

重要

必须在每个新修补程序版本发布后的 30 天之内进行更新,然后方可继续获取支持。You must update within 30 days after each new patch version release to continue receiving support.

例如,若要运行 PowerShell Core 6.1,且 6.1.3 已于 2019 年 2 月 19 日发布,应在发布后的 30 天之内(即 2019 年 3 月 21 日前)更新到 PowerShell Core 6.1.3,更新后方可继续获取支持。For example, If you're running PowerShell Core 6.1 and 6.1.3 was released on February 19, 2019, you would be expected to update to PowerShell Core 6.1.3 by March 21, 2019, which is 30 days after the release to maintain support. 如果发现需要任何修补程序,则将在下一次累积更新中发布修补程序。If any fixes are found to be required, the fixes will be released in our next cumulative update.

新式生命周期策略还要求,在中止对某产品(即 PowerShell Core)提供支持前的 12 个月内,Microsoft 需向客户持续提供通知。The Modern Lifecycle Policy also requires that Microsoft give customers 12 months notice before discontinuing support for a product (that is, PowerShell Core).

支持的平台Supported platforms

若要确认你的 PowerShell Core 平台和版本是否受到官方支持,请参阅下表。To confirm if your platform and version of PowerShell Core are officially supported, see the following table.

我们的社区也为一些平台提供了包,但它们不受官方支持。Our community has also contributed packages for some platforms, but they aren't officially supported. 这些包在表中标记为 CommunityThese packages are marked as Community in the table.

列为 Experimental 的平台不受官方支持,但可用于实验和反馈。Platforms listed as Experimental aren't officially supported, but are available for experimentation and feedback.

平台Platform 6.26.2 7.07.0
Windows 8.1 和 10Windows 8.1, and 10 支持Supported 支持Supported
Windows Server 2012 R2、2016Windows Server 2012 R2, 2016 支持Supported 支持Supported
Windows Server 半年频道Windows Server Semi-Annual Channel 支持Supported 支持Supported
Ubuntu 16.04 和 18.04Ubuntu 16.04 and 18.04 支持Supported 支持Supported
Ubuntu 19.10(通过 Snap 包)Ubuntu 19.10 (via Snap Package) 社区Community 社区Community
Ubuntu 20.04(通过 Snap 包)Ubuntu 20.04 (via Snap Package) 社区Community 社区Community
Debian 9Debian 9 支持Supported 支持Supported
Debian 10Debian 10 不支持Not Supported 支持Supported
CentOS 7CentOS 7 支持Supported 支持Supported
CentOS 8CentOS 8 不支持Not Supported 支持Supported
Red Hat Enterprise Linux 7Red Hat Enterprise Linux 7 支持Supported 支持Supported
Red Hat Enterprise Linux 8Red Hat Enterprise Linux 8 不支持Not Supported 支持Supported
Fedora 30Fedora 30 不支持Not Supported 支持Supported
Alpine 3.8Alpine 3.8 请参阅备注See Note 请参阅备注See Note
Alpine 3.9 和 Alpine 3.10Alpine 3.9 and 3.10 不支持Not Supported 请参阅备注See Note
macOS 10.12+macOS 10.12+ 支持Supported 支持Supported
ArchArch 社区Community 社区Community
RaspbianRaspbian 社区Community 社区Community
KaliKali 社区Community 社区Community
AppImage(可在多个 Linux 平台上运行)AppImage (works on multiple Linux platforms) 社区Community 社区Community
Snap 包Snap Package 查看注释See note 查看注释See note

备注

Snap 包与正在运行此包的发行版受到相同的支持。Snap packages are supported the same as the distribution you're running the package on.

备注

Alpine 不支持 CIM、PowerShell 远程处理和 DSC。CIM, PowerShell Remoting, and DSC are not supported on Alpine.

PowerShell 版本生命周期结束PowerShell releases end of life

根据 PowerShell 生命周期,下表列出了各个版本不再受支持的日期。Based on the Lifecycle of PowerShell, the following table lists the dates when various releases will no longer be supported.

版本Version 生命周期终止日期End-of-life
7.07.0 2022 年 12 月 3 日December 3, 2022
6.26.2 2020 年 9 月 4 日September 4, 2020
6.16.1 2019 年 9 月 28 日September 28, 2019
6.06.0 2019 年 2 月 13 日February 13, 2019

不支持的平台Unsupported platforms

如果某个平台版本已到达平台所有者定义的生命周期终止日期,PowerShell Core 也会停止支持相应平台版本。When a platform version reaches end-of-life as defined by the platform owner, PowerShell Core will also cease to support that platform version. 以前发布的包对需要访问的客户仍可用,但将不再提供任何种类的正式支持和更新。Previously released packages will remain available for customers needing access but formal support and updates of any kind will no longer be provided.

因此,发行版所有者不再支持以下版本,它们不受支持。So, the distribution owners ended support for the following versions and aren't supported.

平台Platform 版本Version 生命周期终止End of Life
DebianDebian 88 2018 年 6 月June 2018
FedoraFedora 2424 2017 年 8 月August 2017
FedoraFedora 2525 2017 年 12 月December 2017
FedoraFedora 2626 2018 年 5 月May 2018
FedoraFedora 2727 2018 年 11 月November 2018
FedoraFedora 2828 2019 年 5 月May 2019
OpenSUSEopenSUSE 42.142.1 2017 年 5 月May 2017
OpenSUSEopenSUSE 42.242.2 2018 年 1 月January 2018
OpenSUSEopenSUSE 42.342.3 2019 年 7 月July 2019
UbuntuUbuntu 14.0414.04 2019 年 4 月April 2019
UbuntuUbuntu 16.1016.10 2017 年 7 月July 2017
UbuntuUbuntu 17.0417.04 2018 年 1 月January 2018
UbuntuUbuntu 17.117.10 2018 年 7 月July 2018
WindowsWindows 77 2020 年 1 月January 2020
Windows ServerWindows Server 2008 R22008 R2 2020 年 1 月January 2020

有关许可的说明Notes on licensing

PowerShell Core 在 MIT 许可 下发布。PowerShell Core is released under the MIT license. 根据此许可规定,如果没有付费支持协议,那么用户只能获得社区支持Under this license, and without a paid support agreement, users are limited to community support. 对于社区支持,Microsoft 无法保证及时作出响应或进行修复。With community support, Microsoft makes no guarantees of responsiveness or fixes.

Windows PowerShell 兼容性Windows PowerShell Compatibility

PowerShell 的支持生命周期不包含 PowerShell 7 发布包之外提供的模块。The support lifecycle for PowerShell doesn't cover modules that ship outside of the PowerShell 7 release package. 例如,使用 Windows Server 随附的 ActiveDirectory 模块受 Windows 支持生命周期支持。For example, using the ActiveDirectory module that ships as part of Windows Server is supported under the Windows Support Lifecycle.

PowerShell 7 改进了与为 Windows PowerShell 编写的现有 PowerShell 模块的兼容性。PowerShell 7 improves compatibility with existing PowerShell modules written for Windows PowerShell. 有关详细信息,请参阅 about_Windows_Compatibility 文章和模块兼容性列表For more information, see the about_Windows_Compatibility article and the module compatibility list.

备注

PowerShell 7 中不再需要也不再支持 WindowsPSModulePath 模块。The WindowsPSModulePath module is no longer necessary in PowerShell 7 and is not supported.

实验性功能Experimental features

实验性功能只能获得社区支持Experimental features are limited to community support.

安全服务标准Security Servicing Criteria

PowerShell 遵守 Microsoft 的 Windows 安全服务标准PowerShell follows the Microsoft Security Servicing Criteria for Windows. 下表列出了满足服务条件的功能以及不满足该条件的功能。The table below outlines the features that meet the servicing criteria and those that do not.

功能Feature 类型Type
执行策略Execution Policy 深层防御Defense in Depth
系统锁定 - 通过 AppLockerSystem Lockdown - with AppLocker 深层防御Defense in Depth
系统锁定 - 通过 WDACSystem Lockdown - with WDAC 安全功能Security Feature

版本历史记录Release history

下表包含 PowerShell 主要版本的时间线。The following table contains a timeline of the major releases of PowerShell. 此表仅供历史参考。This table is provided for historical reference. 它不用于确定支持生命周期。It is not intended for use to determine the support lifecycle.

版本Version 发布日期Release Date 注意Note
PowerShell 7.0 (LTS)PowerShell 7.0 (LTS) 2020 年 3 月Mar-2020 基于 .NET Core 3.1 (LTS) 生成Built on .NET Core 3.1 (LTS)
PowerShell 6.0PowerShell 6.0 2018 年 1 月Jan-2018 第一版,基于 .NET Core 2.1 生成。First release, built on .NET Core 2.1. 可在 Windows、Linux 和 macOS 上安装。Installable on Windows, Linux, and macOS.
PowerShell 5.1PowerShell 5.1 2016 年 8 月Aug-2016 在 Windows 10 周年更新和 Windows Server 2016 中发布Released in Windows 10 Anniversary Update and Windows Server 2016
PowerShell 5.0PowerShell 5.0 2016 年 2 月Feb-2016 在 Windows Management Framework (WMF) 5.0 中发布Released in Windows Management Framework (WMF) 5.0
PowerShell 4.0PowerShell 4.0 2013 年 10 月Oct-2013 在 Windows 8.1 中与 Windows Server 2012 R2 集成。Integrated in Windows 8.1 and with Windows Server 2012 R2. 可在 Windows 7 SP1、Windows Server 2008 R2 SP1 和 Windows Server 2012 上安装。Installable on Windows 7 SP1, Windows Server 2008 R2 SP1, and Windows Server 2012.
PowerShell 3.0PowerShell 3.0 2012 年 10 月Oct-2012 在 Windows 8 中与 Windows Server 2012 集成。Integrated in Windows 8 and with Windows Server 2012. 可在 Windows 7 SP1、Windows Server 2008 SP1 和 Windows Server 2008 R2 SP1 上安装。Installable on Windows 7 SP1, Windows Server 2008 SP1, and Windows Server 2008 R2 SP1.
PowerShell 2.0PowerShell 2.0 2009 年 7 月Jul-2009 在 Windows 7 中与 Windows Server 2008 R2 集成。Integrated in Windows 7 and Windows Server 2008 R2. 可在 Windows XP SP3、Windows Server 2003 SP2 和 Windows Vista SP1 上安装。Installable on Windows XP SP3, Windows Server 2003 SP2, and Windows Vista SP1.
PowerShell 1.0PowerShell 1.0 2006 年 11 月Nov-2006 可在 Windows XP SP2、Windows Server 2003 SP1 和 Windows Vista 上安装。Installable on Windows XP SP2, Windows Server 2003 SP1 and Windows Vista. Windows Server 2008 的可选组件。Optional component of Windows Server 2008.