重要
WMF 5.0 已由 WMF 5.1 取代。 具有 WMF 5.0 的用戶必須升級至 WMF 5.1 才能獲得支援。 WMF 5.1 需要 .NET Framework 4.5.2 (或更高版本)。 安裝將會成功,但如果未安裝 .NET 4.5.2 或更新版本,主要功能將會失敗。
下載並安裝 WMF 5.1 套件
下載您要安裝作業系統和架構的 WMF 5.1 套件:
| 操作系統 | 先決條件 | 套件連結 |
|---|---|---|
| Windows Server 2012 R2 | Win8.1AndW2K12R2-KB3191564-x64.msu | |
| Windows Server 2012 | W2K12-KB3191565-x64.msu | |
| Windows Server 2008 R2 | .NET Framework 4.5.2 | Win7AndW2K8R2-KB3191566-x64.ZIP |
| Windows 8.1 |
x64:Win8.1AndW2K12R2-KB3191564-x64.msu x86:Win8.1-KB3191564-x86.msu |
|
| Windows 7 SP1 | .NET Framework 4.5.2 |
x64:Win7AndW2K8R2-KB3191566-x64.ZIP x86:Win7-KB3191566-x86.ZIP |
- 安裝 WMF 5.1 RTM 之前,必須先卸載 WMF 5.1 Preview。
- WMF 5.1 可以直接安裝在 WMF 5.0 或 WMF 4.0 上。
- 在安裝 WMF 5.1 之前 ,並不要求 先安裝 WMF 4.0 才能安裝在 Windows 7 和 Windows Server 2008 R2 上。
安裝適用於 Windows Server 2008 R2 和 Windows 7 的 WMF 5.1
注意
Windows Server 2008 R2 和 Windows 7 的安裝指示已變更,與其他套件的指示不同。 Windows Server 2012 R2、Windows Server 2012 和 Windows 8.1 的安裝指示如下。
適用於 Windows Server 2008 R2 SP1 和 Windows 7 SP1 的 WMF 5.1 必要條件
在 Windows Server 2008 R2 SP1 或 Windows 7 SP1 上安裝 WMF 5.1 需要下列各項:
- 必須安裝最新的 Service Pack。
- WMF 3.0 必須不 安裝。 在 WMF 3.0 上安裝 WMF 5.1 會導致 PSModulePath (
$env:PSModulePath) 遺失,可能導致其他應用程式失敗。 在安裝 WMF 5.1 前,您必須先卸載 WMF 3.0,或儲存 PSModulePath ,並在 WMF 5.1 安裝完成後手動還原。 - WMF 5.1 至少需要 .NET Framework 4.5.2。 您可以依照下載位置的指示安裝Microsoft .NET Framework 4.5.2。
在 Windows Server 2008 R2 和 Windows 7 上安裝 WMF 5.1
流覽至您下載 ZIP 檔案的資料夾。
右鍵點擊 ZIP 檔,選擇 「全部解壓...」。ZIP 檔包含兩個檔案:一個是 MSU 檔,另一個
Install-WMF5.1.ps1是腳本檔。 解壓縮 ZIP 檔案之後,您可以將內容複製到任何執行 Windows 7 或 Windows Server 2008 R2 的電腦。解壓縮 ZIP 檔案內容之後,以系統管理員身分開啟 PowerShell,然後流覽至包含 ZIP 檔案內容的資料夾。
在那個資料夾裡執行
Install-WMF5.1.ps1腳本,並依照指示操作。 此腳本會檢查本機計算機上的必要條件,如果符合必要條件,請安裝WMF 5.1。 以下列出必要條件。Install-WMF5.1.ps1以下參數可簡化 Windows Server 2008 R2 與 Windows 7 的安裝自動化:- AcceptEula:當包含此參數時,EULA會自動被接受,且不會顯示。
- AllowRestart:此參數僅在指定 AcceptEula 時使用。 如果包含此參數,而且在安裝 WMF 5.1 之後需要重新啟動,重新啟動就會發生,而不會在安裝完成後立即提示。
WinRM 相依性
Windows PowerShell 預期狀態設定 (DSC) 取決於 WinRM。 Windows Server 2008 R2 和 Windows 7 預設不會啟用 WinRM。 在 Windows PowerShell 升格會話中執行 Set-WSManQuickConfig,以啟用 WinRM。
安裝適用於 Windows Server 2012 R2、Windows Server 2012 和 Windows 8.1 的 WMF 5.1
從 Windows 檔案總管安裝
- 流覽至您下載 MSU 檔案的資料夾。
- 按兩下 MSU 來執行它。
從命令提示字元安裝
下載計算機架構的正確套件之後,請以提升的使用者權力開啟命令提示字元視窗(以系統管理員身分執行)。 在 Windows Server 2012 R2、Windows Server 2012 或 Windows Server 2008 R2 SP1 的 Server Core 安裝選項上,命令提示字元預設會以提升的用戶權力開啟。
將目錄變更為您下載或複製 WMF 5.1 安裝套件的資料夾。
執行下列其中一個指令:
- 在運行 Windows Server 2012 R2 或 Windows 8.1 x64 的電腦上,請執行
Win8.1AndW2K12R2-KB3191564-x64.msu /quiet /norestart。 - 在運行 Windows Server 2012 的電腦上,請執行
W2K12-KB3191565-x64.msu /quiet /norestart。 - 在執行 Windows 8.1 x86 的電腦上,執行
Win8.1-KB3191564-x86.msu /quiet /norestart。
注意
安裝 WMF 5.1 需要重新啟動。 只用這個
/quiet選項會讓系統無預警重啟。 使用/norestart避免重啟的選項。 不過,在您重新啟動之前,不會安裝 WMF 5.1。- 在運行 Windows Server 2012 R2 或 Windows 8.1 x64 的電腦上,請執行