[置顶] [19]Window管理框架WMF(Window Management Framework) 5.0 VS Window管理框架WMF(Window Management Framework) 5.1

时间:2023-01-09 00:40:12

最近笔者在研究PowerShell DSC, 我们知道PowerShell DSC是PowerShell的一部分,而PowerShell又是WMF(Window Management Framework)Window管理框架的一部分。网上用Window管理框架百度了一下,搜索的结果很少;现在给大家科普一下,截止2017年1月9日,当前的最新正式发布版本是WMF5.0。 而最新的WMF5.1 还在处于Preview(Beta版本),还不是正式的发布版本。正式版本将在2017年1月19日发布。


那什么是Window管理框架呢?因为其牵涉到版本很多,笔者就以最新的WMF 5.0 正式版和WMF 5.1 公测版为例子,说明其到底包含了什么.Window管理框架WMF(Window Management Framework) 5.0 和 Window管理框架WMF(Window Management Framework) 5.1的区别是什么呢?


@WMF(Window Management Framework)Window管理框架 5.0 正式版

Windows Management Framework (WMF) 5.0 RTM 主要用来安装在Window Server 2012 R2,Window Server 2012,Window Server 2008 R2,Window 8.1 以及Window 7 SP1等操作系统上。主要包含了下面的一些组件和功能。

  • Windows PowerShell
  • Just Enough Administration (JEA)
  • Windows PowerShell Desired State Configuration (DSC)
  • Windows PowerShell Integrated Scripting Environment (ISE)
  • Windows PowerShell Web Services (Management OData IIS Extension)
  • Windows Remote Management (WinRM)
  • Windows Management Instrumentation (WMI)

注意,如果在Window 10上,我们已经更新Window 10到了 Version 1511的话,WMF 5.0 RTM已经默认存在了。如果需要更新操作系统,请选择Settings > Update & security > Windows Update > Check for updates.


@WMF(Window Management Framework)Window管理框架 5.1 公测版(Product Overview)

WMF 5.1 包括 the PowerShell, WMI, WinRM, and Software Inventory and Licensing (SIL) 等组件,且WMF 5.1 将会和Window Server 2016一起正式发布。WMF 5.1 能够被安装在 Windows 7, Windows 8.1, Windows Server 2008 R2, 2012, and 2012 R2等机器上面。相对于WMF 5.0 RTM, WMF 5.1 将会提供下面的功能。

  • 提供一些新的PowerShell cmdlets,比如 local users and groups; Get-ComputerInfo
  • PowerShellGet 方面的提高,比如强制模块的签名(enforcing signed modules), 安装JEA模块。
  • 包的管理,支持 Containers, CBS Setup, EXE-based setup, CAB packages
  • 对于PowerShell DSC和PowerShell类等调试(Debugging) 方面的提高
  • 系统安全性的提高,比如在使用PowerShell DSC和PowerShellGet cmdlets时,强制实施模块目录签名(catalog-signed modules
  • 对于一些用户的请求的疑问和WMF本身问题的修复。

重要的注意事项如下。

  • WMF 5.1需要安装.NET 4.5的框架。如果没有装.NET 4.5的框架,安装能成功,但是其主要的功能不能运行。具体信息请参考Install and Configure WMF 5.1.
  • 在WMF 5.1 RTM 发布出来以后,如果想安装WMF 5.1 RTM ,必须先卸载WMF 5.1 公测版(Product Preview)。
  • WMF 5.1 RTM 应该能够直接在WMF 5.0 或者WMF 4.0上安装,而不需要先卸载WMF 5.0 或者WMF 4.0。
  • 在Windows 7 或者Windows Server 2008 R2机器上,没有必要再安装WMF 5.1之前先安装WMF 4.0。 不过在WMF 5.1 公测版(Product Preview)不支持前面的功能,但是在WMF 5.1 RTM(正式版本)将会解决。

那么如何知道你当前机器上装的是WMF的什么版本呢? 很简单,打开PowerShell控制台,输入下面的命令:

PS C:\DSC> $PSVersionTable

Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

从上图可以看出,作者当前的WMF最新的版本是 5.1.