默认情况下,PowerShell 安装在哪个版本的 Windows 中?

use*_*352 13 windows powershell windows-xp

我刚刚安装了 XP SP2,我希望安装 PowerShell 1.0;然而,事实并非如此。

看来我必须手动安装它。如果我升级到 SP3,我会得到 PowerShell。

来自维基百科文章


PowerShell 1.0 于 2006 年发布,适用于 Windows XP SP2、Windows Server 2003 和 Windows Vista。它是 Windows Server 2008 的可选组件。

PowerShell 2.0 与 Windows 7 和 Windows Server 2008 R2 集成,并针对带有 Service Pack 3 的 Windows XP、带有 Service Pack 2 的 Windows Server 2003 和带有 Service Pack 1 的 Windows Vista 发布。


PowerShell 1.0 或 2.0 似乎默认没有安装在 XP SP3、2003 和 Vista 中。

我找不到任何具体信息,有人可以确认这一点。

Hop*_*00b 14

默认情况下,Windows 7/Server 2008 R2 是第一个安装了 PowerShell 的 Windows 版本

Windows PowerShell 2.0 只需要安装在 Windows Server 2008 和 Windows Vista 上。它已安装在 Windows Server 2008 R2 和 Windows 7 上。

忽略在这个时代安装 XP SP2 的可怕之处,如果默认情况下没有安装 PowerShell 是一个问题,那么您有很多选择来纠正这个问题,既可以追溯(如 GPO 或启动/登录脚本来安装它),也可以继续(通过将其整合到 ISO 映像或您部署的机器中)。


Wol*_*olf 8

简短回答

\n

如前所述:Windows XP 未集成 PowerShell,因此您的具体解决方案是在 WinXP SP2 上安装 PS1(假设该软件可用)。

\n

长答案

\n

阅读维基百科上的PowerShell #Version专门部分为我提供了以下信息。为了这个概述,我删除了细节和大部分(可靠且信息丰富的):

\n

Windows PowerShell 版本

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\n
版本集成于发布于
1.0Windows XP SP2
服务器 2003 SP1
Windows Vista
2.0Windows 7
Windows Server 2008 R2[59]
Windows XP SP3
Windows Server 2003 SP2
Windows Vista SP1
3.0Windows 8
Windows Server 2012
Windows 7 SP1
Windows Server 2008 SP1
Windows Server 2008 R2 SP1
4.0Windows 8.1
Windows Server 2012 R2
Windows 7 SP1
Windows Server 2008 R2 SP1
Windows Server 2012
5.1Windows 10 周年更新
Windows Server 2016
Windows 7
Windows Server 2008
Windows Server 2008 R2
Windows Server 2012
Windows Server 2012 R2
\n

PowerShell 核心 6

\n

PowerShell Core 6 是第一个免费的、跨平台的 PoweShell 实现(请注意名称中缺少的Windows和附加的Core )

\n\n

电源外壳7

\n

PowerShell 7 取代了 PowerShell Core 6.x 产品和 Windows PowerShell 5.1,重点是成为 PS 5.1 的可行替代品。名称中的核心部分已被删除以反映连接。

\n\n


pau*_*ska 1

Windows XP 未安装 PowerShell。之后您必须手动安装它。