2014年5月27日 星期二

[研究] Windows 2012 R2 with Update 繁體中文版整合 hotfix 光碟製作

[研究] Windows 2012 R2 with Update 繁體中文版整合 hotfix 光碟製作

2014-05-27

(下圖) 先安裝一台 Windows Server 2012 R2 with Update (標準版,Standard),看看有那些 hotfix 更新



(下圖) 檢查 .iso 中包含哪些版本


@rem Merge.bat
@rem Windows 2012 R2 with Update 整合 hotfix
@rem 需要系統管理員權限
@rem 2014-05-27

@rem 一些手動工作要先完成
@rem 用 UltraISO 把 .iso 檔案內 \sources\install.wim 拷貝放到 C:\2012R2wU 目錄 (目錄請自己建立,也可以放到其他目錄)

@rem 檢查 .iso 中包含哪幾種版本,經檢查有 4 種版本
dism /get-wiminfo /wimfile:C:\2012R2wU\install.wim

@rem 索引 : 1 名稱 : Windows Server 2012 R2 SERVERSTANDARDCORE
@rem 索引 : 2 名稱 : Windows Server 2012 R2 SERVERSTANDARD
@rem 索引 : 3 名稱 : Windows Server 2012 R2 SERVERDATACENTERCORE
@rem 索引 : 4 名稱 : Windows Server 2012 R2 SERVERDATACENTER

@rem 請下載 WGET for Windows (win32),把 wget.exe 放到 C:\2012R2wU\hotfix 目錄
@rem http://users.ugent.be/~bpuype/wget/

@rem GimageX 可從Windows 8.1 ADK中提取,版本 6.3.9600.16384,x86 & x64
@rem 適用於 Windows 8.1 更新的 Windows 評定及部署套件 (Windows ADK)
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=39982
@rem 或 Google 找別人提供的,例如
@rem http://pan.baidu.com/share/link?shareid=2730130819&uk=1312251634

@rem ----- 下載 hotfix ------------------------------------------------------------------
mkdir C:\2012R2wU\hotfix
cd C:\2012R2wU\hotfix

@rem KB2920189:Windows Server 2012 R2 安全性更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42702
wget http://download.microsoft.com/download/C/E/9/CE965FB0-13A9-4EBC-A7FF-576A3443CD29/Windows8.1-KB2920189-x64.msu

@rem KB2926765:Windows Server 2012 R2 安全性更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42720
wget http://download.microsoft.com/download/1/F/7/1F7A4EA9-80BA-40E4-93DF-FDE42F978DD9/Windows8.1-KB2926765-x64.msu

@rem Windows 8.1、Windows RT 8.1 和 Windows Server 2012 R2 的 Microsoft .NET Framework 4.5.1 資訊安全更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42775
wget http://download.microsoft.com/download/3/E/1/3E19BBE5-EF13-48ED-AEA3-90ECF790C3AB/Windows8.1-KB2931366-x64.msu

@rem KB2939087:Windows Server 2012 R2 更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42365
wget http://download.microsoft.com/download/D/6/5/D65D99AF-B338-4529-9E86-60032531528C/Windows8.1-KB2939087-x64.msu

@rem KB2950153:Windows Server 2012 R2 更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42766
wget http://download.microsoft.com/download/3/B/F/3BF109B7-7981-45BB-B057-F5275415C588/Windows8.1-KB2950153-x64.msu

@rem KB2953522 適用於 Windows Server 2012 R2 的 Internet Explorer 11 安全性更新 (KB2953522)
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42817
wget http://download.microsoft.com/download/D/7/4/D74107FB-26CA-4E01-96D1-ABE61C96C093/Windows8.1-KB2953522-x64.msu

@rem KB2956575:Windows Server 2012 R2 更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42748
wget http://download.microsoft.com/download/4/A/7/4A7EF046-72EA-41D0-BEEA-C968FDF7333A/Windows8.1-KB2956575-x64.msu

@rem KB2958262:Windows Server 2012 R2 更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42758
wget http://download.microsoft.com/download/7/6/2/762B466D-03A7-4010-94EA-6D6794F7C868/Windows8.1-KB2958262-x64.msu

@rem KB2965065:Windows Server 2012 R2 更新
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42736
wget http://download.microsoft.com/download/4/4/4/444BE1BC-D6F4-4346-A78B-F7D927C7636D/Windows8.1-KB2965065-x64.msu

@rem KB2954879 Windows 8.1 與 Windows Server 2012 R2 的 Microsoft .NET Native 更新 - KB2954879
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42380
wget http://download.microsoft.com/download/5/0/A/50A5BBBA-68AC-469D-AC7F-746DE045DFA5/Windows8.1-KB2954879-v2-x64.msu

@rem KB2919355 Windows Server 2012 R2 更新 (KB2919355)
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42334
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/clearcompressionflag.exe
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2959977-x64.msu
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2937592-x64.msu
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2934018-x64.msu
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2919355-x64.msu
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2932046-x64.msu
wget http://download.microsoft.com/download/2/5/6/256CCCFB-5341-4A8D-A277-8A81B21A1E35/Windows8.1-KB2938439-x64.msu

@rem KB890830
@rem Malicious Software Removal Tool for Windows 8.1 x64
@rem http://www.microsoft.com/zh-tw/download/malicious-software-removal-tool-details.aspx
wget http://download.microsoft.com/download/2/C/5/2C563B99-54D9-4D85-A82B-45D3CD2F53CE/Windows-KB890830-x64-V5.12.exe
@rem 整合失敗

@rem KB2928193
@rem 適用於 Windows Server 2012 R2 的 RRAS Best Practice Analyzer 規則更新 (KB2928193)
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42324
wget http://download.microsoft.com/download/3/6/F/36F9CCC7-C9FD-4591-BC39-53FAD567A3EC/Windows8.1-KB2928193-x64.msu

@rem ----- Options ------------------------------------------------------------------

@rem KB2955164:Windows Server 2012 R2 更新 (27KB)
@rem http://www.microsoft.com/zh-tw/download/details.aspx?id=42738
@rem http://download.microsoft.com/download/7/A/D/7AD93BA2-7D0C-42C6-87D4-FDD9D7407F08/Windows8.1-KB2955164-x64.msu
@rem 整合失敗

@rem -----------------------------------------------------------------------
mkdir C:\wim2
cd C:\2012R2wU

@rem ----- 更新 index 1 ------------------------------------------------------------------
DISM /Mount-Wim /WimFile:C:\2012R2wU\install.wim /index:1 /MountDir:C:\wim2
time /t
FOR %%i in (C:\2012R2wU\hotfix\*.msu) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
FOR %%i in (C:\2012R2wU\hotfix\*.exe) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
time /t
DISM /Unmount-Wim /MountDir:C:\wim2 /commit
DISM /Cleanup-Wim

@rem 做好一個 index 後,最好用 UltraISO 把 .iso 檔案內 \sources\install.wim 換成新作出來的,安裝測試看看
@rem 沒問題再做其他 index,不然整 1 份 index 很花時間

@rem ----- 更新 index 2 ------------------------------------------------------------------
DISM /Mount-Wim /WimFile:C:\2012R2wU\install.wim /index:2 /MountDir:C:\wim2
time /t
FOR %%i in (C:\2012R2wU\hotfix\*.msu) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
FOR %%i in (C:\2012R2wU\hotfix\*.exe) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
time /t
DISM /Unmount-Wim /MountDir:C:\wim2 /commit
@rem 正常而言 /commit 會清空 c:\wim2 內容,不用再執行  DISM /Cleanup-Wim
DISM /Cleanup-Wim

@rem ----- 更新 index 3 ------------------------------------------------------------------
DISM /Mount-Wim /WimFile:C:\2012R2wU\install.wim /index:3 /MountDir:C:\wim2
time /t
FOR %%i in (C:\2012R2wU\hotfix\*.msu) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
FOR %%i in (C:\2012R2wU\hotfix\*.exe) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
time /t
DISM /Unmount-Wim /MountDir:C:\wim2 /commit
DISM /Cleanup-Wim

@rem ----- 更新 index 4 ------------------------------------------------------------------
DISM /Mount-Wim /WimFile:C:\2012R2wU\install.wim /index:4 /MountDir:C:\wim2
time /t
FOR %%i in (C:\2012R2wU\hotfix\*.msu) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
FOR %%i in (C:\2012R2wU\hotfix\*.exe) do start /wait  /min DISM /Image:C:\wim2 /Add-Package /PackagePath:%%i
time /t
DISM /Unmount-Wim /MountDir:C:\wim2 /commit
DISM /Cleanup-Wim

@rem -----------------------------------------------------------------------
@rem 用 UltraISO 把 .iso 檔案內 \sources\install.wim 換成新作出來的


(下圖) 整合版安裝後,還是有少量檔案需要更新




(下圖) 安裝 Windows Server 2012 R2 with Update,做完更新後,PowerOff 後 VM 大小


(下圖) 安裝 Windows Server 2012 R2 with Update 整合 hotfix 版,做完更新後,PowerOff 後 VM 大小

省下的硬碟空間不多,只是比較省時點,畢竟  Windows Server 2012 R2 with Update 是2014年4月9日釋出,需要更新的不多。

(完)

沒有留言:

張貼留言