Windows PowerShell 系统需求

本文列出了Windows PowerShell 3.0、Windows PowerShell 4.0、Windows PowerShell 5.0和Windows PowerShell 5.1的系统需求。 以及特殊功能,如Windows PowerShell集成脚本环境(ISE)、通用信息模型(CIM)命令和工作流。

Windows 8.1 和 Windows Server 2012 R2 包含所有必需程序。 本文面向使用早期版本Windows的用户。

操作系统要求

Windows PowerShell 5.1

Windows PowerShell 5.1 可在以下版本的 Windows 上运行。 要运行 Windows PowerShell 5.1,请安装 Windows 管理框架 5.1。 更多信息请参见 安装和配置 WMF 5.1

Windows 版本 系统需求
Windows Server 2022 默认安装
Windows Server 2019 默认安装
Windows Server 2016 默认安装
Windows Server 2012 R2 安装 Windows 管理框架 5.1
Windows Server 2012 安装 Windows 管理框架 5.1
Windows Server 2008 R2 服务包 1 安装 Windows 管理框架 5.1
Windows 11 默认安装
Windows 10 版本 1607 及以上 默认安装
Windows 10 版本 1507、1511 安装 Windows 管理框架 5.1
Windows 8.1 安装 Windows 管理框架 5.1
Windows 7 服务包 1 安装 Windows 管理框架 5.1

Windows PowerShell 5.0

Windows 管理框架 5.1 取代了 Windows 管理框架 5.0。 更多信息请参见 安装和配置 WMF 5.1

Windows 版本 系统需求
Windows Server 2022 默认安装更高版本
Windows Server 2019 默认安装更高版本
Windows Server 2016 默认安装更高版本
Windows Server 2012 R2 安装 Windows 管理框架 5.1
Windows Server 2012 安装 Windows 管理框架 5.1
Windows Server 2008 R2 服务包 1 安装 Windows 管理框架 5.1
Windows 11 默认安装更高版本
Windows 10 版本 1607 及以上 默认安装更高版本
Windows 10 版本 1507、1511 默认安装
Windows 8.1 安装 Windows 管理框架 5.1
Windows 7 服务包 1 安装 Windows 管理框架 5.1

Windows PowerShell 4.0

Windows PowerShell 4.0 可在以下版本的 Windows 上运行。

Windows 版本 系统需求
Windows 8.1 默认安装
Windows Server 2012 R2 默认安装

Windows PowerShell 3.0

Windows PowerShell 3.0 可在以下版本的 Windows 上运行。

Windows 版本 系统需求
Windows 8操作系统 默认安装
Windows Server 2012 默认安装

Microsoft.NET Framework要求

Windows PowerShell 5.1 需要完整安装 Microsoft .NET Framework 4.5 或更高版本。

Windows 管理框架 4.0

Windows PowerShell 5.0 要求在 Windows Server 2008 R2 SP1 和 Windows 7 SP1 上预装 Windows 管理框架 4.0。

WS-Management 3.0

Windows PowerShell 3.0 和 Windows PowerShell 4.0 需要支持 WinRM 服务和 WSMan 协议的 WS-Management 3.0。 该程序包含在 Windows 8.1、Windows Server 2012 R2、Windows 8、Windows Server 2012、Windows 管理框架 4.0 和 Windows 管理框架 3.0 中。

Windows 管理 Instrumentation 3.0

Windows PowerShell 3.0 和 Windows PowerShell 4.0 需要 Windows 管理仪器 3.0(WMI)。 该程序包含在 Windows 8.1、Windows Server 2012 R2、Windows 8、Windows Server 2012、Windows 管理框架 4.0 和 Windows 管理框架 3.0 中。 如果该程序未安装在计算机上,需要WMI的功能,如CIM命令,将无法运行。

通用语言运行时4.0

Windows PowerShell 3.0、Windows PowerShell 4.0 和 Windows PowerShell 5.0 是基于通用语言运行时(CLR)4.0 编译的。

图形用户界面需求

Windows PowerShell 是一个基于控制台的应用程序,不需要图形用户界面。 它非常适合没有屏幕、显示器或用户界面的计算机,比如Windows Server 2012 R2或Windows Server 2012的Server Core安装选项。

有些项目需要图形用户界面。 详情请参见每项物品的帮助文章。

Windows PowerShell 引擎需求

Windows PowerShell 4.0 设计为向下兼容 Windows PowerShell 3.0 和 Windows PowerShell 2.0。 为 Windows PowerShell 2.0 和 3.0 编写的指令集、提供者、snap-in、模块和脚本在 Windows PowerShell 4.0 中运行不变。

然而,由于 Microsoft .NET Framework 4 运行时激活策略的变更,为 Windows PowerShell 2.0 编写并用 Common Language Runtime (CLR) 2.0 编译的 Windows PowerShell 主机程序,在 Windows PowerShell 3.0 中无法运行,而 Windows PowerShell 3.0 则是用 CLR 4.0 编译的。

Windows PowerShell 2.0 引擎的最低需求是 Microsoft .NET Framework 2.0.50727。 这一要求由 Microsoft .NET Framework 3.5 服务包 1 满足。 Microsoft.NET Framework 4及更高版本的.NET Framework Microsoft不满足这一要求。

有关添加或安装Windows PowerShell 2.0引擎,以及添加或安装Microsoft .NET Framework所需版本的信息,请参见 安装Windows PowerShell 2.0引擎。 有关启动 Windows PowerShell 2.0 引擎的信息,请参见 启动 Windows PowerShell 2.0 引擎

Windows 预安装环境

Windows PowerShell 2.0、Windows PowerShell 3.0 和 Windows PowerShell 4.0 运行在 Windows 预安装环境(Windows PE)中。 然而,以下这些指令小组件不被支持。

Windows PE上没有 WinRM 服务。

有关在 Windows PE 上安装 Windows PowerShell 5.1 的信息,请参见 “向 Windows PE 添加 Windows PowerShell 支持”。

另请参阅