Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 系統封裝自動應答檔 (Unattend.xml) 製作入門與進階技巧

編輯:Windows 7 系統介紹

利用 Windows AIK (現 ADK) 製作自動應答檔,可實現 Windows 7 無人值守部署。本文記錄學習心得與關鍵設定節點。

封裝流程關鍵階段

執行 sysprep /generalize /oobe /shutdown 重開機後,系統依序經歷:

  1. specialize:硬體偵測、驅動安裝、電腦名稱、網路、時區、產品金鑰、CopyProfile 等。
  2. oobeSystem:使用者建立、桌面設定、FirstLogonCommands、自動登入等。

封裝階段流程圖

常用自動化設定 (在 Windows SIM 中編輯)

1. 將目前使用者設定套用為預設使用者設定 (CopyProfile)

階段:specialize
元件:Microsoft-Windows-Shell-Setup
設定:CopyProfile = true
效果:將目前登入使用者的桌面捷徑、工作列釘選、資料夾視圖等個人化設定複製到 Default Profile,所有新建使用者繼承相同環境。

2. 自動啟用內建 Administrator 並自動登入

階段:specialize
元件:Microsoft-Windows-Shell-Setup\AutoLogon
設定:
Enabled = true
Username = Administrator
LogonCount = 3 (自動登入次數)
Password (可留空或指定)

AutoLogon 設定

3. 跳過 OOBE 使用者建立畫面

階段:oobeSystem
元件:Microsoft-Windows-Shell-Setup\OOBE
設定:
SkipMachineOOBE = true
SkipUserOOBE = true
HideEULAPage = true
HideWirelessSetupInOOBE = true
ProtectYourPC = 3 (建議設定:僅重要更新)
代價:犧牲 ProfilesDirectory、FirstLogonCommands、LogonCommands 等進階設定。

4. IE 8/9/10 初始設定自動化

階段:specialize
元件:Microsoft-Windows-IE-InternetExplorer
可設定:首頁、搜尋提供者、快速連結、略過首次執行嚮導、隱私權設定等。

IE 設定

待研究課題:跳過 OOBE 時如何修改預設使用者設定檔路徑 (ProfilesDirectory)

OOBE 階段可設定 ProfilesDirectory 將 C:\Users 導向非系統碟。若跳過 OOBE,能否在 specialize 階段透過「接管 Windows 部署」機制匯入登錄檔修改 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory 達成?尚待實測驗證。

學習建議

安裝 Windows ADK,熟悉 Windows SIM (系統映像管理器) 介面,從範例應答檔入手,逐步加入所需自動化項目,反覆在虛擬機測試驗證。

Copyright © Windows教程網 All Rights Reserved