Windows PowerShell 的历史

2024 年 8 月 29 日 | 阅读 3 分钟

到 2002 年,微软开始开发一种新的管理命令行的方式。它还包括开发一个新的 Shell,名为 Monad。一篇发表于 2002 年 的白皮书,名为 Monad Manifesto。它包含了这个 shell 的概念以及创建使用 .NET 框架通过自动化任务的标准平台的想法。

Monad 首次展示是在 2003 年在洛杉矶举行的专业开发者大会上。微软于 2005 年 6 月 17 日、2005 年 9 月 11 日和 2006 年 1 月 10 日发布了 Monad 的三个测试版。微软在同年 4 月将 Monad 重命名为 Windows PowerShell,并将其作为 Windows 操作系统的一个核心部分。

Windows PowerShell 的版本

PowerShell 1.0

2006 年 11 月,微软发布了 PowerShell 1.0 版,适用于 Windows Vista、Windows XP SP2 和 Windows Server 2003 SP1。此版本是 Windows Server 2008 的可选组件。

PowerShell 2.0

PowerShell 2.0 版与 Windows Server 2008 R2 和 Windows 7 集成。它发布于 Windows Vista Service Pack 1、Windows Server 2003 Service Pack 2 和 Windows XP Service Pack 3。

此版本包括对托管 API 和脚本语言的更改。

以下是 PowerShell 2.0 的新功能

  • PowerShell 远程处理
  • 后台作业
  • 可分步管道。
  • 脚本调试
  • Windows PowerShell ISE(集成脚本环境)
  • 网络文件传输

PowerShell 3.0

PowerShell 3.0 版与 Windows Server 2012 和 Windows 8 集成。

微软也将其用于 Windows Server 2008 Service Pack 1、Windows 7 Service Pack 1 和 Windows Server 2008 R2 Service Pack1。

此版本是 (WMF3) Windows Management Framework 软件包的内部部分,其中包含支持远程处理的 WinRM 服务。

以下是 PowerShell 3.0 的新功能

  • 计划作业
  • 会话连接
  • 委托支持
  • 自动模块检测
  • 改进的代码编写
  • 帮助更新
  • 新命令

PowerShell 4.0

PowerShell 4.0 版与 Windows Server 2012 R2 和 Windows 8.1 集成。

微软也已将其用于 Windows Server 2008 R2 SP1、Windows 7 SP1 和 Windows Server 2012。

以下是 PowerShell 4.0 的新功能

  • 所需状态配置 (DSC)
  • 新的默认执行策略
  • 保存帮助
  • 增强调试
  • 网络诊断

PowerShell 5.0

此版本于 2016 年 2 月 24 日发布到网络,作为 Windows Management Framework (WMF 5.0) 的内部部分。

此版本默认安装在 Windows 10 和 Windows Server 2012 上。

以下是 PowerShell 5.0 的新功能

  • PowerShell .NET 枚举
  • DSC 部分配置
  • PowerShell 后台作业的调试
  • 远程进程中 PowerShell Runspace 的调试
  • PowerShell 类定义(属性、方法)

PowerShell 5.1

PowerShell 5.1 于 2016 年 8 月 2 日与 Windows 10 周年更新一起发布。此版本最终于 2017 年 1 月 19 日发布。微软已将其用于 Windows 7、Windows Server 2008、Windows Server 2008 R2、Windows 7、Windows Server 2012 和 Windows Server 2012 R2。

这是第一个以“Core”和“Desktop”两种版本提供的版本。


下一个主题PowerShell vs CMD