Windows PowerShell 系统要求Windows PowerShell System Requirements

本主题列出了用于 Windows PowerShell 3.0、Windows PowerShell 4.0、Windows PowerShell 5.0 和 Windows PowerShell 5.1 以及用于特殊功能(如 Windows PowerShell 集成脚本环境 (ISE)、CIM 命令和工作流)的系统要求。This topic lists the system requirements for Windows PowerShell 3.0, Windows PowerShell 4.0 and Windows PowerShell 5.0, and Windows PowerShell 5.1 and for special features, such as Windows PowerShell Integrated Scripting Environment (ISE), CIM commands, and workflows.

Windows® 8.1 和 Windows Server® 2012 R2 包括所有必需的程序。Windows® 8.1 and Windows Server® 2012 R2 include all required programs. 本主题主要面向 Windows 早期版本的用户。This topic is designed for users of earlier releases of Windows.

操作系统要求Operating System Requirements

Windows PowerShell 5.1 在以下 Windows 版本上运行。Windows PowerShell 5.1 runs on the following versions of Windows.

Windows PowerShell 5.0 (已被 Windows PowerShell 5.1 取代)在以下版本的 Windows 上运行。Windows PowerShell 5.0 (Superseded by Windows PowerShell 5.1) runs on the following versions of Windows.

Windows PowerShell 4.0 在以下 Windows 版本上运行。Windows PowerShell 4.0 runs on the following versions of Windows.

Windows PowerShell 3.0 在以下 Windows 版本上运行。Windows PowerShell 3.0 runs on the following versions of Windows.

Microsoft .NET Framework 要求Microsoft .NET Framework Requirements

Windows PowerShell 5.1 需要完全安装 Microsoft .NET Framework 4.5。Windows PowerShell 5.1 requires the full installation of Microsoft .NET Framework 4.5. Windows 8.1 和 Windows Server 2012 R2 默认包括 Microsoft.NET Framework 4.5。Windows 8.1 and Windows Server 2012 R2 include Microsoft .NET Framework 4.5 by default.

Windows PowerShell 5.0 需要完全安装 Microsoft .NET Framework 4.5。Windows PowerShell 5.0 requires the full installation of Microsoft .NET Framework 4.5. Windows 8.1 和 Windows Server 2012 R2 默认包括 Microsoft.NET Framework 4.5。Windows 8.1 and Windows Server 2012 R2 include Microsoft .NET Framework 4.5 by default.

Windows PowerShell 4.0 需要完全安装 Microsoft .NET Framework 4.5。Windows PowerShell 4.0 requires the full installation of Microsoft .NET Framework 4.5. Windows 8.1 和 Windows Server 2012 R2 默认包括 Microsoft.NET Framework 4.5。Windows 8.1 and Windows Server 2012 R2 include Microsoft .NET Framework 4.5 by default.

Windows PowerShell 3.0 需要完全安装 Microsoft .NET Framework 4。Windows PowerShell 3.0 requires the full installation of Microsoft .NET Framework 4. 默认情况下,Windows 8 和 Windows Server 2012 中包含了满足此要求的 Microsoft .NET Framework 4.5。Windows 8 and Windows Server 2012 include Microsoft .NET Framework 4.5 by default, which fulfills this requirement.

若要安装 Microsoft .NET Framework 4.5 (dotNetFx45_Full_setup.exe),请参阅 Microsoft 下载中心的 Microsoft .NET Framework 4.5To install Microsoft .NET Framework 4.5 (dotNetFx45_Full_setup.exe), see Microsoft .NET Framework 4.5 on the Microsoft Download Center.

若要安装 Microsoft .NET Framework 4 (dotNetFx40_Full_setup.exe) 的完全安装,请参阅 Microsoft 下载中心的 Microsoft .NET Framework 4 (Web Installer)To install the full installation of Microsoft .NET Framework 4 (dotNetFx40_Full_setup.exe), see Microsoft .NET Framework 4 (Web Installer) on the Microsoft Download Center.

Windows Management Framework 4.0Windows Management Framework 4.0

Windows PowerShell 5.0 要求在 Windows Server 2008 R2 SP1 和 Windows 7 SP1 上预先安装 Windows Management Framework 4.0。Windows PowerShell 5.0 requires Windows Management Framework 4.0 to be preinstalled on Windows Server 2008 R2 SP1 and Windows 7 SP1.

WS-Management 3.0WS-Management 3.0

Windows PowerShell 3.0 和 Windows PowerShell 4.0 需要支持 WinRM 服务和 WSMan 协议的 WS-Management 3.0。Windows PowerShell 3.0 and Windows PowerShell 4.0 require WS-Management 3.0, which supports the WinRM service and WSMan protocol. Windows 8.1、Windows Server 2012 R2、Windows 8、Windows Server 2012、Windows Management Framework 4.0 和 Windows Management Framework 3.0 中包含此程序。This program is included in Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows Management Framework 4.0, and Windows Management Framework 3.0.

Windows Management Instrumentation 3.0Windows Management Instrumentation 3.0

Windows PowerShell 3.0 和 Windows PowerShell 4.0 要求安装 Windows Management Instrumentation 3.0 (WMI)。Windows PowerShell 3.0 and Windows PowerShell 4.0 require Windows Management Instrumentation 3.0 (WMI). Windows 8.1、Windows Server 2012 R2、Windows 8、Windows Server 2012、Windows Management Framework 4.0 和 Windows Management Framework 3.0 中包含此程序。This program is included in Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows Management Framework 4.0, and Windows Management Framework 3.0. 如果计算机上未安装此程序,则不能运行需要 WMI 的功能,如 CIM 命令。If this program is not installed on the computer, features that require WMI, such as CIM commands, do not run.

公共语言运行时 4.0Common Language Runtime 4.0

针对公共语言运行时 (CLR) 4.0 编译 Windows PowerShell 3.0、Windows PowerShell 4.0 和 Windows PowerShell 5.0。Windows PowerShell 3.0, Windows PowerShell 4.0, and Windows PowerShell 5.0 are compiled against Common Language Runtime (CLR) 4.0.

图形用户界面要求Graphical User Interface Requirements

Windows PowerShell 是基于控制台的应用程序,不需要图形用户界面。Windows PowerShell is a console-based application that does not require a graphical user interface. 因此,它适用于没有屏幕或监视器或用户界面的计算机,例如 Windows Server 2012 R2 或 Windows Server 2012 的服务器核心安装选项。As such, is it well suited to computers that do not have screens or monitors, or a user interface, such as the Server Core installation options of Windows Server 2012 R2 or Windows Server 2012.

但是,以下的一些项则需要图形用户界面。However, some items, such as the following, require a graphical user interface. 有关详细信息,请参阅每个项的帮助主题。For details, see the help topic for each item.

Windows PowerShell 引擎要求Windows PowerShell Engine Requirements

Windows PowerShell 4.0 旨在能够与 Windows PowerShell 3.0 和 Windows PowerShell 2.0 向后兼容。Windows PowerShell 4.0 is designed to be backwards compatible with Windows PowerShell 3.0 and Windows PowerShell 2.0. 为 Windows PowerShell 2.0 和 Windows PowerShell 3.0 编写的 Cmdlet、提供程序、管理单元、模块以及脚本无需更改,即可在 Windows PowerShell 4.0 中运行。Cmdlets, providers, snap-ins, modules, and scripts written for Windows PowerShell 2.0 and Windows PowerShell 3.0 run unchanged in Windows PowerShell 4.0.

但是,由于 Microsoft.NET framework 4 中的运行时激活策略的更改,为 Windows PowerShell 2.0 编写并使用公共语言运行时 (CLR) 2.0 编译的 Windows PowerShell 主机程序在使用 CLR 4.0 编译的 Windows PowerShell 3.0 中未进行修改时,将无法运行。However, due to a change in the runtime activation policy in Microsoft .NET Framework 4, Windows PowerShell host programs that were written for Windows PowerShell 2.0 and compiled with Common Language Runtime (CLR) 2.0 cannot run without modification in Windows PowerShell 3.0, which is compiled with CLR 4.0.

Windows PowerShell 2.0 引擎至少需要 Microsoft .NET Framework 2.0.50727。The Windows PowerShell 2.0 engine requires Microsoft .NET Framework 2.0.50727 at a minimum. Microsoft .NET Framework 3.5 Service Pack 1 满足此要求。This requirement is fulfilled by Microsoft .NET Framework 3.5 Service Pack 1. Microsoft .NET Framework 4 和更高版本的 Microsoft .NET Framework 不满足此要求。This requirement is not fulfilled by Microsoft .NET Framework 4 and later releases of Microsoft .NET Framework.

有关添加或安装 Windows PowerShell 2.0 引擎,以及添加或安装 Microsoft.NET Framework 所需版本的详细信息,请参阅安装 Windows PowerShell 2.0 引擎For information about adding or installing the Windows PowerShell 2.0 engine, and adding or installing the required versions of the Microsoft .NET Framework, see Installing the Windows PowerShell 2.0 Engine. 有关启动 Windows PowerShell 2.0 引擎的信息,请参阅启动 Windows PowerShell 2.0 引擎For information about starting the Windows PowerShell 2.0 engine, see Starting the Windows PowerShell 2.0 Engine.

Windows 预安装环境Windows Preinstallation Environment

Windows PowerShell 2.0、Windows PowerShell 3.0 和 Windows PowerShell 4.0 在 Windows 预安装环境 (Windows PE) 中运行。Windows PowerShell 2.0, Windows PowerShell 3.0, and Windows PowerShell 4.0 run in the Windows Preinstallation Environment (Windows PE). 但是,不支持以下 cmdlet。However, the following cmdlets are not supported.

同时,Windows PE 上不存在WinRM服务。Also, the WinRM service is not present on Windows PE.

另请参阅See Also