Windows Management Framework 5.0 預覽版 2014 年 9 月

Applies To
Windows Server 2012 R2 Datacenter Windows Server 2012 R2 Standard Windows Server 2012 R2 Essentials Windows Server 2012 R2 Foundation Windows 8.1 Enterprise Windows 8.1 Pro Windows 8.1

本文描述 Windows Management Framework 5.0 的一項更新。 在安裝此更新前,請先了解 安裝卸載 的步驟,並了解 已知問題不相容之處

關於此更新

Windows Management Framework (2014 年 9 月的 WMF) 5.0 預覽版包含了從 WMF 4.0 更新過的功能。 WMF 5.0 2014 年 9 月預覽版可供安裝於執行 Windows 8.1 或 Windows Server 2012 R2 的電腦上,並包含以下功能的更新版本:

  • Windows PowerShell
  • Windows PowerShell ISE (整合腳本環境)
  • Windows PowerShell 網路服務 (管理 OData IIS 擴充)
  • Windows PowerShell Desired State Configuration (DSC)
  • Windows 遠端管理 (WinRM)
  • Windows Management Instrumentation (WMI)

如何取得此更新

Microsoft 下載中心

您可以從「Microsoft 下載中心」下載下列檔案:

立即下載 WMF 5.0 2014 年 9 月預覽版套件。欲了解更多如何下載 Microsoft 支援檔案的資訊,請點擊以下文章編號,在 Microsoft 知識庫中查看該文章:

119591 如何取得Microsoft支援檔案線上服務Microsoft掃描此檔案是否有病毒。 Microsoft 是利用發佈當日的最新病毒偵測軟體來掃描檔案。 檔案會儲存在安全性強化的伺服器上,以避免任何未經授權的變更。

如何安裝與卸載 WMF 5.0 預覽版 2014 年 9 月

安裝說明

安裝此更新的前提條件是沒有先決條件的。

記事​​

  • 如果你於 2014 年 7 月安裝了 WMF 5.0 實驗版,必須先卸載該版本,才能安裝 WMF 5.0 9 月預覽版。

  • 若要在安裝 Windows PowerShell 2.0 的電腦上安裝此更新,您必須在命令提示字元執行以下指令來啟用 Windows PowerShell 2.0:

    • dism /online /enable-feature:MicrosoftWindowsPowerShellV2
    • dism /online /enable-feature:MicrosoftWindowsPowerShellV2-WOW64

安裝方法

要從 Windows 檔案總管安裝 WMF 5.0, (或在 R2 Windows Server 2012 檔案總管 安裝)

  1. 找到你下載MSU檔案的資料夾。
  2. 雙擊 MSU 檔案即可執行。

使用命令提示字元安裝 WMF 5.0

  1. 下載適合你電腦架構的套件後,開啟一個帶有提升權限的命令提示字元視窗 (以管理員) 執行。 預設情況下,在 Windows Server 2012 R2 的 Server Core 安裝選項中,會開啟一個命令提示字元,並顯示提升的使用者權限。

  2. 更改目錄以找到你下載或複製 WMF 5.0 安裝套件的資料夾。

  3. 執行以下其中一個指令:

    • 在運行 Windows 8.1 專業版、Windows 8.1 企業版 或 Windows Server 2012 R2 的 x64 電腦上,運行 Windows8.1-KB2969050-x64.msu /quiet。
    • 在運行 Windows 8.1 專業版、Windows 8.1 企業版 或 Windows Server 2012 R2 的 x86 電腦上,運行 Windows8.1-KB2969050-x86.msu /quiet。

      

移除指示

移除方法

使用控制台解除安裝 WMF 5.0

  1. 開啟 [控制台]。
  2. 打開 程式,然後點 選卸載一個程式
  3. 按一下 [檢視已安裝的更新]
  4. 從已安裝的更新列表中選擇 Windows Management Framework 5.0 9 月 2014 年 9 月預覽版。 這對應 於KB2969050。 按一下 [解除安裝]。

使用命令提示字元解除安裝 WMF 5.0

  1. 開啟 [命令提示字元]。
  2. 執行下列命令:
    WUSA /卸載 /KB:KB2969050

      

安裝此更新後已知問題

      

已知問題 1 當你從 WMF 5.0 還原到 Windows 8.1 或 Windows Server 2012 R2 版本時,DSC 指令檔會壞掉。 此行為是因為 metaconfig.mof 檔案的更新所致。

要解決這個問題,請刪除 metaconfig.mof 檔案。 若要這麼做,請按照下列步驟進行:

  1. 開啟 powershell.exe 並提升使用者權限 (以管理員) 身份執行。
  2. 執行下列命令:
    Remove-Item -Path $env:SystemRoot\system32\Configuration\metaconfig.mof

已知問題 2 當您於 2014 年 9 月安裝 WMF 5.0 預覽版時,有些電腦會顯示安裝成功或失敗。 然而,安裝在重新啟動電腦後會還原變更。

要解決這個問題,請刪除 WMI 中的 \\root\microsoft\windows\desiredstateconfiguration 命名空間。 若要這麼做,請按照下列步驟進行:

  1. 開啟 powershell.exe 並提升使用者權限 (以管理員) 身份執行。

  2. 依照給定順序執行以下指令:

    • $dscNamespace = Get-CimInstance -Namespace root\microsoft\windows -查詢「select * from __namespace where name = 'desiredstateconfiguration'」
    • $dscNamespace |Remove-CimInstance
    • mofcomp.exe %windir%\system32\wbem\DSCCoreConfProv.mof
  3. 安裝 WMF 5.0 預覽套件。

已知問題 3 當您嘗試卸載 WMF 5.0 預覽版 2014 年 9 月版或 WMF 5.0 實驗版 2014 年 7 月版時,某些電腦可能會失敗,並在重新啟動卸載時還原變更。

要解決這個問題,請在卸載 WMF 5.0 預覽版(2014 年 9 月)或 WMF 5.0 實驗版 2014 年 7 月前,刪除 WMI 中的 \\root\microsoft\windows\desiredstateconfiguration 命名空間。 若要這麼做,請按照下列步驟進行:

  1. 開啟 powershell.exe 並提升使用者權限 (以管理員) 身份執行。

  2. 依序執行以下指令:

    • $dscNamespace = Get-CimInstance -Namespace root\microsoft\windows -查詢「select * from __namespace where name = 'desiredstateconfiguration'」
    • $dscNamespace |Remove-CimInstance

已知的不相容性

執行以下伺服器應用程式的系統目前不應執行 Windows Management Framework 5.0:

  • System Center 2012 設定管理員 (不含服務包 1)
  • Windows 小型企業伺服器 2011 Standard