Share via


PowerShell 支援生命週期

注意

本檔與 PowerShell 支持有關。 Windows PowerShell (1.0 - 5.1) 是 Windows 操作系統的元件。 如需詳細資訊,請參閱 產品和服務生命周期資訊

PowerShell 遵循 Microsoft 新式生命周期原則。 支援日期遵循 .NET 支持原則。 在此服務方法中,客戶可以選擇長期支援 (LTS) 版本或目前版本。

PowerShell 的 LTS 版本建置在 .NET 的 LTS 版本上。 更新 至LTS 版本僅包含重要的安全性更新和服務修正程式,其設計目的是將對現有工作負載的影響降到最低。

目前的版本是在 LTS 版本之間發生的版本。 目前的版本可以包含重要的修正、創新和新功能。 Microsoft 在下一個 LTS 版本之後,支援目前版本六個月。

LTS目前版本的 PowerShell 都會收到安全性更新和錯誤修正。 Microsoft 僅支援版本的最新更新版本。

取得支援

Microsoft 會盡最大努力支援 PowerShell。 Windows PowerShell 5.1 的支持是透過 Windows 支援通道提供。 您可以使用標準付費支援通道來取得 PowerShell 的支援。

PowerShell 社群提供許多免費支持選項。 最活躍的社群支援頻道可透過 DiscordSlack 取得。 討論通道會鏡像在兩個平臺上,因此您可以選擇您偏好的平臺。 這些通道可協助您針對問題進行疑難解答、回答問題,並提供如何使用PowerShell的指引。

如果您認為您發現錯誤,您可以在 GitHub提出問題。 PowerShell 小組無法透過 GitHub 提供支援,但歡迎錯誤報告。 社群 支持 頁面提供最熱門社群支援頻道的連結。

支援的平台

PowerShell 會在多個作業系統 (OS) 和處理器架構平台上執行。 平台必須符合下列準則:

  • .NET 支援目標平臺 (OS 版本和處理器架構)。
  • Microsoft 已在目標平台上測試並核准PowerShell。
  • 散發者至少支援一年的OS版本。
  • OS 版本不是過渡版本或對等版本。
  • 散發者目前支援 OS 版本。

符合下列任一條件時,PowerShell 的支援就會結束:

  • 目標平台達到平台擁有者所定義的生命周期結束
  • PowerShell 的特定版本達到生命周期結束

在 PowerShell 版本達到生命週期結束之後,不會再提供任何更新,包括安全性更新。 Microsoft 鼓勵客戶升級至支援的 PowerShell 版本,以繼續接收更新和支援。

Windows

Microsoft 支援 PowerShell,直到 PowerShell 終止支援或 Windows 版本達到終止支持為止

  • Windows Server 2022、Windows Server Core 2022、Windows Server Core 2022 和 Windows Server Nano 組建 1809 的 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5 預覽版 Docker 映射可從 Microsoft 成品登錄
  • PowerShell 7.2 和更新版本可以安裝在 Windows 10 組建 1607 和更新版本、Windows 11、Windows Server 2016 和更新版本,以及 Windows Server Nano 組建 1809 和更新版本

注意

特定 Windows 版本的支持取決於 Microsoft 支援服務 生命周期原則。 如需詳細資訊,請參閱

macOS

Microsoft 支援 PowerShell,直到 PowerShell 終止支援 或 macOS 版本達到終止支持為止。

  • macOS 14 (Sonoma) x64 和 Arm64
  • macOS 13 (Ventura) x64 和 Arm64
  • macOS 12 (蒙特利) x64 和 Arm64

Apple 決定 macOS 的支援生命週期。 如需詳細資訊,請參閱下列:

Alpine Linux

Microsoft 支援 PowerShell,直到 PowerShell 達到終止支援 或 Alpine 版本 達到生命週期結束為止。

Alpine 3.16 - OS 支持終止於 2024-05-23

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

Alpine 3.17 - OS 支持終止於 2024-11-22

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

PowerShell 的 Docker 映射目前不適用於 Alpine 3.18 和 3.19。

PowerShell 的預覽版本僅供測試和意見反應使用。

Debian Linux

Microsoft 支援 PowerShell,直到 PowerShell 達到終止支援 或 Debian 版本 達到生命週期結束為止。

Debian 11 (Bullseye) - OS 支援將於 2024-07-31 結束

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

Debian 12 (Bookworm) - OS 支持終止於 2026-06-10

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

PowerShell 的預覽版本僅供測試和意見反應使用。

Red Hat Enterprise Linux (RHEL)

Microsoft 支援 PowerShell,直到 PowerShell 終止支援或 RHEL 版本達到終止支持為止

RHEL 8 - OS 支援終止於 2029-05-31

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

RHEL 9 - OS 支援終止於 2032-05-31

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 的 Docker 映射

PowerShell 已在 Red Hat 通用基底映射 (UBI) 上進行測試。 如需詳細資訊,請參閱 UBI 資訊頁面

Ubuntu Linux

Microsoft 支援 PowerShell,直到 PowerShell 終止支援或 Ubuntu 版本達到終止支持為止

Ubuntu 20.04 (Focal Fossa) - OS 支援將於 2025-04-02 結束

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 和 Arm32 的 Docker 映射

Ubuntu 22.04 (Jammy Jellyfish) - OS 支援將於 2027-04-01 結束

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 和 Arm32 的 Docker 映射

Ubuntu 24.04 (Noble Numbat) - OS 支援將於 2029-04-25 結束

  • 您可以從 Microsoft 成品登錄 取得包含 PowerShell 7.2、PowerShell 7.4 和 PowerShell 7.5-preview for x64 和 Arm32 的 Docker 映射

Microsoft 不支援 Ubuntu 的過渡版本 。 如需詳細資訊,請參閱 社群支援的散發套件

支援 PowerShell 模組

PowerShell 的支援生命週期未涵蓋在 PowerShell 發行套件之外隨附的模組。 例如,在 Windows 支援生命週期,支援使用ActiveDirectory隨附於 Windows Server 的模組。

支持實驗性功能

實驗性功能 不適用於生產環境。 我們讚賞實驗性功能的意見反應,並提供最佳支援。

授權注意事項

PowerShell 會根據 MIT 授權發行。 根據此授權,且沒有付費支援合約,使用者僅限於 社群支援。 透過社群支援,Microsoft 不保證回應性或修正。

PowerShell 終止支援日期

PowerShell 支援生命週期遵循 .NET 的支援生命週期。 下表列出目前 PowerShell 版本的終止支援日期:

版本 發行日期 終止支援
7.4 (LTS-current) 2023年11月16日 2026 年 11 月 10 日
7.2 (LTS-previous) 2021 年 11 月 8 日 2024 年 11 月 8 日

下表列出已淘汰 PowerShell 版本的終止支援日期:

版本 發行日期 終止支援
7.3 2022 年 11 月 9 日 2024 年 5 月 8 日
7.0 (LTS) 2020 年 3 月 4 日 2022 年 12 月 3 日
7.1 2020 年 11 月 11 日 2022 年 5 月 8 日
6.2 2019年3月28日 2020 年 9 月 4 日
6.1 2018 年 9 月 13 日 2019 年 9 月 28 日
6.0 2018 年 1 月 20 日 2019 年 2 月 13 日

發行版本記錄

下表包含PowerShell主要版本的歷史時程表。

版本 發行日期 注意
PowerShell 7.5 (預覽版) 未來 .NET 9.0.0 為基礎建置
PowerShell 7.4 (LTS-current) 2023年11月 建置在 .NET 8.0.0
PowerShell 7.3 2022年11月 建置在 .NET 7.0 上
PowerShell 7.2 (LTS-previous) 2021年11月 建置在 .NET 6.0 上
PowerShell 7.1 2020 年 11 月 建置在 .NET 5.0 上
PowerShell 7.0 (LTS) 2020 年 3 月 建置在 .NET Core 3.1 上
PowerShell 6.2 2019 年 3 月 建置在 .NET Core 2.1 上
PowerShell 6.1 2018 年 9 月 建置在 .NET Core 2.1 上
PowerShell 6.0 2018 年 1 月 建置在 .NET Core 2.0。 可在 Windows、Linux 和 macOS 上安裝
Windows PowerShell 5.1 2016 年 8 月 在 Windows 10 年度更新版和 Windows Server 2016 中發行,WMF 5.1
Windows PowerShell 5.0 2016 年 2 月 在 Windows Management Framework 中發行 (WMF) 5.0
Windows PowerShell 4.0 2013年10月 在 Windows 8.1 和 Windows Server 2012 R2 中發行,WMF 4.0
Windows PowerShell 3.0 2012年10月 在 Windows 8 和 Windows Server 2012 WMF 3.0 中發行
Windows PowerShell 2.0 2009年7月 在 Windows 7 和 Windows Server 2008 R2 中發行,WMF 2.0
Windows PowerShell 1.0 2006年11月 發行為 Windows Server 2008 的選用元件

執行下列命令以檢視您所執行之 PowerShell 版本所使用的 .NET 完整版本號碼:

[System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription