PowerShell Core 支持生命周期PowerShell Core Support Lifecycle

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

不过,PowerShell Core 受传统 Microsoft 支持协议支持,包括顶级Microsoft 企业协议Microsoft 软件保障However, PowerShell Core is supported under traditional Microsoft support agreements, including Premier, Microsoft Enterprise Agreements, and Microsoft Software Assurance. 还可通过就相应问题填写支持请求,从而付费获取有关 PowerShell Core 的辅助支持You can also pay for assisted support for PowerShell Core 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 Core 生命周期Lifecycle of PowerShell Core

PowerShell Core 即将采用 Microsoft 新式生命周期策略PowerShell Core is adopting 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 will be updated approximately once every six months (examples: 6.0, 6.1, 6.2, etc.)

重要

必须在每个新次要版本发布后的六个月时间之内进行更新,然后方可继续获取支持。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).

最终,我们预计 PowerShell Core 将采用长期服务方法。Eventually, we expect PowerShell Core will adopt the long-term servicing approach. 在此服务方法中,只需服务和安全更新即可获取有关 6.x 特定分支/版本的支持。In this servicing approach, we would require only servicing and security updates to stay in support on a specific branch/version of 6.x.

支持平台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 7、8.1 和 10Windows 7, 8.1, and 10 支持Supported 支持Supported
Windows Server 2008 R2、2012 R2、2016Windows Server 2008 R2, 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 18.10(使用 Snap 包)Ubuntu 18.10 (via Snap Package) 社区Community 社区Community
Ubuntu 19.04(通过 Snap 包)Ubuntu 19.04 (via Snap Package) 社区Community 社区Community
Debian 9Debian 9 支持Supported 支持Supported
Debian 10Debian 10 不受支持Not Supported 支持Supported
CentOS 7CentOS 7 支持Supported 支持Supported
Red Hat Enterprise Linux 7Red Hat Enterprise Linux 7 支持Supported 支持Supported
openSUSE 42.3openSUSE 42.3 支持Supported 支持Supported
Fedora 28Fedora 28 支持Supported 支持Supported
Fedora 29、Fedora 30Fedora 29, 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 Core 生命周期,下表列出了各个版本不再受支持的日期。Based on Lifecycle of PowerShell Core, the following table lists the dates when various releases will no longer be supported.

版本Version 生命周期终止日期End-of-life
6.06.0 2019 年 2 月 13 日February 13, 2019
6.16.1 2019 年 9 月 28 日September 28, 2019
6.26.2 7 发布后的 6 个月后6 months after 7 releases

不支持的平台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
FedoraFedora 2424 2017 年 8 月August 2017
FedoraFedora 2525 2017 年 12 月December 2017
FedoraFedora 2626 2018 年 5 月May 2018
OpenSUSEopenSUSE 42.142.1 2017 年 5 月May 2017
OpenSUSEopenSUSE 42.242.2 2018 年 1 月January 2018
UbuntuUbuntu 16.1016.10 2017 年 7 月July 2017
UbuntuUbuntu 17.0417.04 2018 年 1 月January 2018
UbuntuUbuntu 17.1017.10 2018 年 7 月July 2018
DebianDebian 88 2018 年 6 月June 2018
FedoraFedora 2727 2018 年 11 月November 2018
UbuntuUbuntu 14.0414.04 2019 年 4 月April 2019

有关许可的说明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 Module

对 PowerShell Core 的支持不包括产品模块,除非这些模块显式支持 PowerShell Core。Support for PowerShell Core doesn't include product modules, unless those modules explicitly support PowerShell Core. 例如,使用 Windows Server 随附的 ActiveDirectory 模块是不受支持的方案。For example, using the ActiveDirectory module that ships as part of Windows Server is an unsupported scenario.

不过,在某些情况下,不显式支持 PowerShell Core 的模块可能是兼容的。However, modules that don't explicitly support PowerShell Core may be compatible in some cases. 通过安装 WindowsPSModulePath 模块,可以将 Windows PowerShell PSModulePath 添加到 PowerShell Core PSModulePathBy installing the WindowsPSModulePath module, you can add the Windows PowerShell PSModulePath to your PowerShell Core PSModulePath.

首先,安装来自 PowerShell 库的 WindowsPSModulePath 模块:First, install the WindowsPSModulePath module from the PowerShell Gallery:

# Add `-Scope CurrentUser` if you're installing as non-admin
Install-Module WindowsPSModulePath -Force

安装此模块后,运行 Add-WindowsPSModulePath cmdlet 以将 Windows PowerShell PSModulePath 添加到 PowerShell Core:After installing this module, run the Add-WindowsPSModulePath cmdlet to add the Windows PowerShell PSModulePath to PowerShell Core:

# Add this line to your profile if you always want Windows PowerShell PSModulePath
Add-WindowsPSModulePath

实验性功能Experimental features

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